Interface ClientOptions

interface ClientOptions {
    allowedMentions?: MessageMentionOptions;
    botGuilds?: IGuild[];
    botId?: string;
    closeTimeout?: number;
    enforceNonce?: boolean;
    failIfNotExists?: boolean;
    guards?: GuardFunction[];
    intents: BitFieldResolvable<
        | "Guilds"
        | "GuildMembers"
        | "GuildModeration"
        | "GuildBans"
        | "GuildEmojisAndStickers"
        | "GuildIntegrations"
        | "GuildWebhooks"
        | "GuildInvites"
        | "GuildVoiceStates"
        | "GuildPresences"
        | "GuildMessages"
        | "GuildMessageReactions"
        | "GuildMessageTyping"
        | "DirectMessages"
        | "DirectMessageReactions"
        | "DirectMessageTyping"
        | "MessageContent"
        | "GuildScheduledEvents"
        | "AutoModerationConfiguration"
        | "AutoModerationExecution"
        | "GuildMessagePolls"
        | "DirectMessagePolls", number>;
    jsonTransformer?: ((obj: unknown) => unknown);
    logger?: ILogger;
    makeCache?: CacheFactory;
    partials?: readonly Partials[];
    presence?: PresenceData;
    rest?: Partial<RESTOptions>;
    shardCount?: number;
    shards?: number | readonly number[] | "auto";
    silent?: boolean;
    simpleCommand?: SimpleCommandConfig;
    sweepers?: SweeperOptions;
    waitGuildTimeout?: number;
    ws?: WebSocketOptions;
}

Hierarchy

  • ClientOptions
    • ClientOptions

Properties

allowedMentions?: MessageMentionOptions
botGuilds?: IGuild[]

Set the guilds globally for application commands

botId?: string

Specify bot id (added for multiple bot support)

closeTimeout?: number
enforceNonce?: boolean
failIfNotExists?: boolean
guards?: GuardFunction[]

The global guards

intents: BitFieldResolvable<
    | "Guilds"
    | "GuildMembers"
    | "GuildModeration"
    | "GuildBans"
    | "GuildEmojisAndStickers"
    | "GuildIntegrations"
    | "GuildWebhooks"
    | "GuildInvites"
    | "GuildVoiceStates"
    | "GuildPresences"
    | "GuildMessages"
    | "GuildMessageReactions"
    | "GuildMessageTyping"
    | "DirectMessages"
    | "DirectMessageReactions"
    | "DirectMessageTyping"
    | "MessageContent"
    | "GuildScheduledEvents"
    | "AutoModerationConfiguration"
    | "AutoModerationExecution"
    | "GuildMessagePolls"
    | "DirectMessagePolls", number>
jsonTransformer?: ((obj: unknown) => unknown)
logger?: ILogger

Set custom logger implementation

makeCache?: CacheFactory
partials?: readonly Partials[]
presence?: PresenceData
rest?: Partial<RESTOptions>
shardCount?: number
shards?: number | readonly number[] | "auto"
silent?: boolean

Do not log anything

simpleCommand?: SimpleCommandConfig

simple command related customization

sweepers?: SweeperOptions
waitGuildTimeout?: number
ws?: WebSocketOptions