summary refs log tree commit diff
path: root/src/util/config/types/subconfigurations/limits/GlobalRateLimits.ts
blob: d7c8a84688fe9cc72c816114131e500e86fa4b9a (plain) (blame)
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;
}