old-automod/lib/types/ServerConfig.ts

34 lines
1.2 KiB
TypeScript
Raw Normal View History

2021-10-10 13:33:21 +00:00
import AutomodSettings from "./antispam/AutomodSettings";
import LogConfig from "./LogConfig";
2021-10-10 13:33:21 +00:00
2021-10-09 20:20:06 +00:00
class ServerConfig {
2022-04-09 11:03:12 +00:00
id: string;
prefix?: string;
spaceAfterPrefix?: boolean;
automodSettings?: AutomodSettings;
botManagers?: string[];
moderators?: string[];
votekick?: {
2022-03-16 22:55:50 +00:00
enabled: boolean;
votesRequired: number;
banDuration: number; // -1: Only kick, 0: Permanent, >0: Ban duration in minutes
trustedRoles: string[];
2022-04-09 11:03:12 +00: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 11:03:12 +00:00
};
2022-04-09 20:43:36 +00:00
allowBlacklistedUsers?: boolean; // Whether the server explicitly allows users that are globally blacklisted
2022-05-28 12:00:22 +00: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 20:20:06 +00:00
}
export default ServerConfig;