fix: client options

This commit is contained in:
MARCROCK22 2024-03-23 22:38:35 -04:00
parent 751568fb59
commit 8d7ab24cce

View File

@ -99,6 +99,8 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
shardStart: this.options?.shards?.start, shardStart: this.options?.shards?.start,
shardEnd: this.options?.shards?.end ?? this.options?.shards?.total, shardEnd: this.options?.shards?.end ?? this.options?.shards?.total,
totalShards: this.options?.shards?.total ?? this.options?.shards?.end, totalShards: this.options?.shards?.total ?? this.options?.shards?.end,
properties: this.options?.gateway?.properties,
compress: this.options?.gateway?.compress,
}); });
} }
@ -183,6 +185,10 @@ export interface ClientOptions extends BaseClientOptions {
end: number; end: number;
total?: number; total?: number;
}; };
gateway?: {
properties?: ShardManagerOptions['properties'];
compress?: ShardManagerOptions['compress'];
};
commands?: { commands?: {
prefix: (message: Message) => Promise<string[]> | string[]; prefix: (message: Message) => Promise<string[]> | string[];
deferReplyResponse?: (ctx: CommandContext) => Parameters<Message['write']>[0]; deferReplyResponse?: (ctx: CommandContext) => Parameters<Message['write']>[0];