mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
fix: client options
This commit is contained in:
parent
751568fb59
commit
8d7ab24cce
@ -99,6 +99,8 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
|
||||
shardStart: this.options?.shards?.start,
|
||||
shardEnd: this.options?.shards?.end ?? this.options?.shards?.total,
|
||||
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;
|
||||
total?: number;
|
||||
};
|
||||
gateway?: {
|
||||
properties?: ShardManagerOptions['properties'];
|
||||
compress?: ShardManagerOptions['compress'];
|
||||
};
|
||||
commands?: {
|
||||
prefix: (message: Message) => Promise<string[]> | string[];
|
||||
deferReplyResponse?: (ctx: CommandContext) => Parameters<Message['write']>[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user