old-automod/lib/types/ServerConfig.ts

34 lines
1.2 KiB
TypeScript

import AutomodSettings from "./antispam/AutomodSettings";
import LogConfig from "./LogConfig";
class ServerConfig {
id: string;
prefix?: string;
spaceAfterPrefix?: boolean;
automodSettings?: AutomodSettings;
botManagers?: string[];
moderators?: string[];
votekick?: {
enabled: boolean;
votesRequired: number;
banDuration: number; // -1: Only kick, 0: Permanent, >0: Ban duration in minutes
trustedRoles: string[];
};
linkedServer?: string;
whitelist?: {
users?: string[],
roles?: string[],
managers?: boolean,
};
logs?: {
messageUpdate?: LogConfig, // Message edited or deleted
modAction?: LogConfig, // User warned, kicked or banned
};
allowBlacklistedUsers?: boolean; // Whether the server explicitly allows users that are globally blacklisted
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.
}
export default ServerConfig;