mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
chore: make tslint happy
This commit is contained in:
parent
75ffb3dadf
commit
a660e87917
3 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -28,6 +28,7 @@ export const onButtonInteraction = guildPluginEventListener<RoleButtonsPluginTyp
|
|||
ephemeral: true,
|
||||
content: "Invalid option selected",
|
||||
})
|
||||
// tslint:disable-next-line no-console
|
||||
.catch((err) => console.trace(err.message));
|
||||
return;
|
||||
}
|
||||
|
@ -46,6 +47,7 @@ export const onButtonInteraction = guildPluginEventListener<RoleButtonsPluginTyp
|
|||
ephemeral: true,
|
||||
content: `The role **${roleName}** will be removed shortly!`,
|
||||
})
|
||||
// tslint:disable-next-line no-console
|
||||
.catch((err) => console.trace(err.message));
|
||||
} else {
|
||||
rolesToAdd.push(option.role_id);
|
||||
|
@ -63,6 +65,7 @@ export const onButtonInteraction = guildPluginEventListener<RoleButtonsPluginTyp
|
|||
ephemeral: true,
|
||||
content: `You will receive the **${roleName}** role shortly!`,
|
||||
})
|
||||
// tslint:disable-next-line no-console
|
||||
.catch((err) => console.trace(err.message));
|
||||
}
|
||||
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue