fuwa.js / Exports / Client / clientOptions
Client.clientOptions
• Optional
applicationId: string
• Optional
builtinCommands: Object
Name | Type |
---|---|
help? |
false | { embedColor? : string | number } |
• Optional
cache: true
If the bot should cache guilds/channels/users or not. It's suggested to keep this on for smaller bots but for larger ones turn this off, caching increases the speed of sending messages, but takes up memory. meaning caching on = faster guild replies caching off = more memory for other tasks
• Optional
cachingSettings: Object
Settings for caching
Name | Type | Description |
---|---|---|
cacheOptions? |
Object |
- |
cacheOptions.channels |
boolean |
- |
cacheOptions.guilds |
boolean |
- |
cacheOptions.users |
boolean |
- |
clearAfter? |
number | false |
Clear the cache after a certain amount of time (in ms) If this is false then the cache will never be cleared |
maxSize? |
number |
Maximum amount of items to cache at once. Set this to 0 if you want an unlimited cache size |
• Optional
debug: boolean
To turn on the debug mode, not recommed to turn this on unless your debugging the library.
• intents: number
see
GatewayIntents
• Optional
owners: string
| string
[]
The owners' discord ID
• Optional
shards: number
• Optional
useMentionPrefix: boolean
If this is turned on (true) When someone mentions your bot it will behave as a prefix.
▸ parser(prefix
, msg
, options
): false
| [{ cb
: CommandCallback
; options
: commandOptions
}[], string
[]]
The
Name | Type |
---|---|
prefix |
string |
msg |
Message |
options |
clientOptions |
false
| [{ cb
: CommandCallback
; options
: commandOptions
}[], string
[]]