Skip to main content

Interface: PluginOptions

Plugin configuration options for @robojs/xp

Configure global defaults that apply to all guilds. Individual guilds can override these via /xp config commands or the XP.config.set() API.

Example

// config/plugins/robojs/xp.ts
import type { PluginOptions } from '@robojs/xp'

export default {
defaults: {
cooldownSeconds: 90,
xpRate: 1.5,
labels: { xpDisplayName: 'Reputation' },
multipliers: { server: 2.0 },
roleRewards: [
{ level: 5, roleId: 'ROLE_ID_HERE' },
{ level: 10, roleId: 'ROLE_ID_HERE' }
]
}
} satisfies PluginOptions

Properties

defaults?

optional defaults: Partial<GuildConfig>;

Global XP configuration defaults (optional)