diff --git a/backend/src/plugins/Mutes/commands/MutesCmd.ts b/backend/src/plugins/Mutes/commands/MutesCmd.ts index df476fba..699b8b11 100644 --- a/backend/src/plugins/Mutes/commands/MutesCmd.ts +++ b/backend/src/plugins/Mutes/commands/MutesCmd.ts @@ -213,6 +213,7 @@ export const MutesCmd = mutesCmd({ if (msg.author.id !== interaction.user.id) { interaction .reply({ content: `You are not permitted to use these buttons.`, ephemeral: true }) + // tslint:disable-next-line no-console .catch((err) => console.trace(err.message)); } else { collector.resetTimer(); diff --git a/backend/src/plugins/RoleButtons/events/buttonInteraction.ts b/backend/src/plugins/RoleButtons/events/buttonInteraction.ts index 380371e0..6fcc27e6 100644 --- a/backend/src/plugins/RoleButtons/events/buttonInteraction.ts +++ b/backend/src/plugins/RoleButtons/events/buttonInteraction.ts @@ -28,6 +28,7 @@ export const onButtonInteraction = guildPluginEventListener console.trace(err.message)); return; } @@ -46,6 +47,7 @@ export const onButtonInteraction = guildPluginEventListener console.trace(err.message)); } else { rolesToAdd.push(option.role_id); @@ -63,6 +65,7 @@ export const onButtonInteraction = guildPluginEventListener console.trace(err.message)); } diff --git a/backend/src/plugins/RoleButtons/functions/applyRoleButtons.ts b/backend/src/plugins/RoleButtons/functions/applyRoleButtons.ts index bb8ec367..3570ebd0 100644 --- a/backend/src/plugins/RoleButtons/functions/applyRoleButtons.ts +++ b/backend/src/plugins/RoleButtons/functions/applyRoleButtons.ts @@ -52,6 +52,8 @@ export async function applyRoleButtons( const channel = await pluginData.guild.channels.fetch(configItem.message.channel_id).catch(() => null); if (channel && (!channel.isTextBased || typeof channel.isTextBased !== "function")) { + // FIXME: Probably not relevant anymore? + // tslint:disable-next-line no-console console.log("wtf", pluginData.guild?.id, configItem.message.channel_id); } if (!channel || !channel?.isTextBased()) {