mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +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,
|
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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user