Merge branch 'master' into pr/5

This commit is contained in:
Tarrgon
2026-06-02 12:45:47 -04:00
10 changed files with 362 additions and 165 deletions
+14
View File
@@ -22,6 +22,12 @@ export default {
.setDescription('Set the ticket logs channel.')
.setRequired(false)
)
.addChannelOption(option =>
option
.setName('appeals-channel')
.setDescription('Set the appeal logs channel.')
.setRequired(false)
)
.addChannelOption(option =>
option
.setName('event-logs-channel')
@@ -139,6 +145,14 @@ export default {
response.push(`**tickets_channel_id** has been set to: ${ticketsChannel}.`);
}
const appealsChannel = interaction.options.getChannel('appeals-channel');
if (appealsChannel) {
await Database.setGuildAppealsLogsChannelId(interaction.guildId!, appealsChannel.id);
response += `Appeals logs channel set to ${appealsChannel}.\n`;
}
const eventLogsChannel = interaction.options.getChannel('event-logs-channel');
if (eventLogsChannel) {
await Database.updateGuildSettings(interaction.guildId, 'event_logs_channel_id', eventLogsChannel.id);