3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 18:25:03 +00:00

chore: make tslint happy

This commit is contained in:
Dragory 2023-04-01 14:22:25 +03:00
parent 75ffb3dadf
commit a660e87917
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 6 additions and 0 deletions

View file

@ -213,6 +213,7 @@ export const MutesCmd = mutesCmd({
if (msg.author.id !== interaction.user.id) { if (msg.author.id !== interaction.user.id) {
interaction interaction
.reply({ content: `You are not permitted to use these buttons.`, ephemeral: true }) .reply({ content: `You are not permitted to use these buttons.`, ephemeral: true })
// tslint:disable-next-line no-console
.catch((err) => console.trace(err.message)); .catch((err) => console.trace(err.message));
} else { } else {
collector.resetTimer(); collector.resetTimer();

View file

@ -28,6 +28,7 @@ export const onButtonInteraction = guildPluginEventListener<RoleButtonsPluginTyp
ephemeral: true, ephemeral: true,
content: "Invalid option selected", content: "Invalid option selected",
}) })
// tslint:disable-next-line no-console
.catch((err) => console.trace(err.message)); .catch((err) => console.trace(err.message));
return; return;
} }
@ -46,6 +47,7 @@ export const onButtonInteraction = guildPluginEventListener<RoleButtonsPluginTyp
ephemeral: true, ephemeral: true,
content: `The role **${roleName}** will be removed shortly!`, content: `The role **${roleName}** will be removed shortly!`,
}) })
// tslint:disable-next-line no-console
.catch((err) => console.trace(err.message)); .catch((err) => console.trace(err.message));
} else { } else {
rolesToAdd.push(option.role_id); rolesToAdd.push(option.role_id);
@ -63,6 +65,7 @@ export const onButtonInteraction = guildPluginEventListener<RoleButtonsPluginTyp
ephemeral: true, ephemeral: true,
content: `You will receive the **${roleName}** role shortly!`, content: `You will receive the **${roleName}** role shortly!`,
}) })
// tslint:disable-next-line no-console
.catch((err) => console.trace(err.message)); .catch((err) => console.trace(err.message));
} }

View file

@ -52,6 +52,8 @@ export async function applyRoleButtons(
const channel = await pluginData.guild.channels.fetch(configItem.message.channel_id).catch(() => null); const channel = await pluginData.guild.channels.fetch(configItem.message.channel_id).catch(() => null);
if (channel && (!channel.isTextBased || typeof channel.isTextBased !== "function")) { 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); console.log("wtf", pluginData.guild?.id, configItem.message.channel_id);
} }
if (!channel || !channel?.isTextBased()) { if (!channel || !channel?.isTextBased()) {