mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: shard options
This commit is contained in:
parent
2d29f011ab
commit
c14c7d296d
@ -9,8 +9,10 @@ import {
|
||||
ClientUser,
|
||||
DMChannel,
|
||||
DirectoryChannel,
|
||||
Entitlement,
|
||||
ForumChannel,
|
||||
Guild,
|
||||
GuildBan,
|
||||
GuildEmoji,
|
||||
GuildMember,
|
||||
GuildRole,
|
||||
@ -30,8 +32,6 @@ import {
|
||||
Webhook,
|
||||
WebhookMessage,
|
||||
} from '../structures';
|
||||
import { Entitlement } from '../structures/Entitlement';
|
||||
import { GuildBan } from '../structures/GuildBan';
|
||||
import type { ChannelType } from '../types';
|
||||
|
||||
export type PollStructure = InferCustomStructure<Poll, 'Poll'>;
|
||||
|
@ -15,3 +15,5 @@ export * from './VoiceState';
|
||||
export * from './Webhook';
|
||||
export * from './channels';
|
||||
export * from './Poll';
|
||||
export * from './GuildBan';
|
||||
export * from './Entitlement';
|
||||
|
@ -46,13 +46,16 @@ export class Shard {
|
||||
public id: number,
|
||||
options: ShardOptions,
|
||||
) {
|
||||
this.options = MergeOptions<Shard['options']>(options, {
|
||||
properties,
|
||||
ratelimitOptions: {
|
||||
rateLimitResetInterval: 60_000,
|
||||
maxRequestsPerRateLimitTick: 120,
|
||||
},
|
||||
} as ShardOptions);
|
||||
this.options = MergeOptions<Shard['options']>(
|
||||
{
|
||||
properties,
|
||||
ratelimitOptions: {
|
||||
rateLimitResetInterval: 60_000,
|
||||
maxRequestsPerRateLimitTick: 120,
|
||||
},
|
||||
} as ShardOptions,
|
||||
options,
|
||||
);
|
||||
|
||||
this.logger = new Logger({
|
||||
name: `[Shard #${id}]`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user