Forward banned alts to mod channel
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user