Forward banned alts to mod channel

This commit is contained in:
Tarrgon
2025-07-19 13:52:22 -04:00
parent 04982a06d6
commit 5b045de4bd
4 changed files with 27 additions and 1 deletions
+6 -1
View File
@@ -29,7 +29,8 @@ const DB_SCHEMA = `
staff_categories TEXT,
safe_channels TEXT,
link_skip_channels TEXT,
github_release_channel TEXT
github_release_channel TEXT,
moderator_channel_id TEXT
);
CREATE TABLE IF NOT EXISTS messages (
@@ -180,6 +181,10 @@ export class Database {
await Database.db.run('UPDATE settings SET new_member_channel_id = ? WHERE guild_id = ?', id, guildId);
}
static async setGuildModeratorChannel(guildId: string, id: string) {
await Database.db.run('UPDATE settings SET moderator_channel_id = ? WHERE guild_id = ?', id, guildId);
}
static async setGuildAdminRole(guildId: string, id: string) {
await Database.db.run('UPDATE settings SET admin_role_id = ? WHERE guild_id = ?', id, guildId);
}