AutoMod/lib/types/ServerConfig.ts

34 lines
1.2 KiB
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
2022-05-28 14:00:22 +02:00
dmOnKick?: boolean; // Whether users should receive a DM when kicked/banned. Default false
dmOnWarn?: boolean; // Whether users should receive a DM when warned. Default false
contact?: string; // How to contact the server staff. Sent on kick/ban/warn DMs. http(s)/mailto link or normal text.
2021-10-09 22:20:06 +02:00
}
export default ServerConfig;