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
+14
View File
@@ -46,6 +46,12 @@ export default {
.setDescription('Set the new member logs channel.')
.setRequired(false)
)
.addChannelOption(option =>
option
.setName('moderator-channel')
.setDescription('Set the site moderator channel.')
.setRequired(false)
)
.addRoleOption(option =>
option
.setName('admin-role')
@@ -165,6 +171,14 @@ export default {
response += `New member logs channel set to ${newMemberLogsChannel}.\n`;
}
const moderatorChannel = interaction.options.getChannel('moderator-channel');
if (moderatorChannel) {
await Database.setGuildModeratorChannel(interaction.guildId!, moderatorChannel.id);
response += `Moderator channel set to ${moderatorChannel}.\n`;
}
const adminRole = interaction.options.getRole('admin-role');
if (adminRole) {