Attachments used staff rather than attachment channel
diff --git a/src/commands/settings/logs/attachment.ts b/src/commands/settings/logs/attachment.ts
index 62abd7e..62fb248 100644
--- a/src/commands/settings/logs/attachment.ts
+++ b/src/commands/settings/logs/attachment.ts
@@ -38,7 +38,7 @@
});
let data = await client.database.guilds.read(interaction.guild!.id);
- let channel = data.logging.staff.channel;
+ let channel = data.logging.attachments.channel;
let closed = false;
do {
@@ -60,7 +60,7 @@
.setLabel("Save")
.setStyle(ButtonStyle.Success)
.setEmoji(getEmojiByName("ICONS.SAVE", "id") as Discord.APIMessageComponentEmoji)
- .setDisabled(channel === data.logging.staff.channel)
+ .setDisabled(channel === data.logging.attachments.channel)
);
const embed = new EmojiEmbed()