2021-10-10 15:33:21 +02:00
|
|
|
import AutomodSettings from "./antispam/AutomodSettings";
|
|
|
|
|
2021-10-09 22:20:06 +02:00
|
|
|
class ServerConfig {
|
|
|
|
id: string | undefined;
|
|
|
|
prefix: string | undefined;
|
|
|
|
spaceAfterPrefix: boolean | undefined;
|
2021-10-10 15:33:21 +02:00
|
|
|
automodSettings: AutomodSettings | undefined;
|
|
|
|
botManagers: string[] | undefined;
|
2021-10-13 18:27:19 +02:00
|
|
|
moderators: string[] | undefined;
|
2021-10-11 17:27:50 +02:00
|
|
|
whitelist: {
|
|
|
|
users: string[] | undefined,
|
|
|
|
roles: string[] | undefined,
|
|
|
|
managers: boolean | undefined,
|
|
|
|
} | undefined;
|
2021-10-14 13:25:13 +02:00
|
|
|
logs: {
|
|
|
|
automod: string | undefined, // automod rule triggered
|
|
|
|
messageUpdate: string | undefined, // Message edited or deleted
|
2021-10-14 14:02:13 +02:00
|
|
|
modAction: string | undefined, // User warned, kicked or banned
|
2021-10-14 13:25:13 +02:00
|
|
|
userUpdate: string | undefined, // Username/nickname/avatar changes
|
|
|
|
} | undefined;
|
2021-10-09 22:20:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default ServerConfig;
|