AutoMod/bot/src/struct/ServerConfig.ts

31 lines
916 B
TypeScript
Raw Normal View History

2021-10-10 15:33:21 +02:00
import AutomodSettings from "./antispam/AutomodSettings";
import LogConfig from "./LogConfig";
2021-10-10 15:33:21 +02:00
2021-10-09 22:20:06 +02:00
class ServerConfig {
2022-04-09 13:03:12 +02:00
id: string;
prefix?: string;
spaceAfterPrefix?: boolean;
automodSettings?: AutomodSettings;
botManagers?: string[];
moderators?: string[];
votekick?: {
2022-03-16 23:55:50 +01:00
enabled: boolean;
votesRequired: number;
banDuration: number; // -1: Only kick, 0: Permanent, >0: Ban duration in minutes
trustedRoles: string[];
2022-04-09 13:03:12 +02:00
};
linkedServer?: string;
whitelist?: {
users?: string[],
roles?: string[],
managers?: boolean,
};
logs?: {
messageUpdate?: LogConfig, // Message edited or deleted
modAction?: LogConfig, // User warned, kicked or banned
2022-04-09 13:03:12 +02:00
};
2022-04-09 22:43:36 +02:00
allowBlacklistedUsers?: boolean; // Whether the server explicitly allows users that are globally blacklisted
2021-10-09 22:20:06 +02:00
}
export default ServerConfig;