1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
export class GlobalRateLimits { register: GlobalRateLimit = { limit: 25, window: 60 * 60 * 1000, enabled: true, }; sendMessage: GlobalRateLimit = { limit: 200, window: 60 * 1000, enabled: true, }; } export class GlobalRateLimit { limit: number = 100; window: number = 60 * 60 * 1000; enabled: boolean = true; }