diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-14 20:51:15 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-14 20:51:15 -0500 |
commit | c2a0bfbeff572a6226919e7f6283fee4af411793 (patch) | |
tree | b39c69d33c5467598c4599cd5b91776994a1ebb8 /src/commands/info | |
parent | c66e80752db6dfe66c57501ce33848c771a9fc13 (diff) | |
download | tanzanite-c2a0bfbeff572a6226919e7f6283fee4af411793.tar.gz tanzanite-c2a0bfbeff572a6226919e7f6283fee4af411793.tar.bz2 tanzanite-c2a0bfbeff572a6226919e7f6283fee4af411793.zip |
fix: remove ts-ingores
Diffstat (limited to 'src/commands/info')
-rw-r--r-- | src/commands/info/help.ts | 3 | ||||
-rw-r--r-- | src/commands/info/links.ts | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index ef3ef30..2383566 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -143,17 +143,14 @@ export default class HelpCommand extends BushCommand { const row = new ActionRow(); if (!client.config.isDevelopment && !client.guilds.cache.some((guild) => guild.ownerId === message.author.id)) { - // @ts-expect-error: outdated @discord.js/builders row.addComponents(new ButtonComponent().setStyle(ButtonStyle.Link).setLabel('Invite Me').setURL(util.invite)); } if (!client.guilds.cache.get(client.config.supportGuild.id)?.members.cache.has(message.author.id)) { row.addComponents( - // @ts-expect-error: outdated @discord.js/builders new ButtonComponent().setStyle(ButtonStyle.Link).setLabel('Support Server').setURL(client.config.supportGuild.invite) ); } if (packageDotJSON?.repository) - // @ts-expect-error: outdated @discord.js/builders row.addComponents(new ButtonComponent().setStyle(ButtonStyle.Link).setLabel('GitHub').setURL(packageDotJSON.repository)); else void message.channel?.send('Error importing package.json, please report this to my developer.'); diff --git a/src/commands/info/links.ts b/src/commands/info/links.ts index d9d5b8a..25b040c 100644 --- a/src/commands/info/links.ts +++ b/src/commands/info/links.ts @@ -22,13 +22,10 @@ export default class LinksCommand extends BushCommand { public override async exec(message: BushMessage | BushSlashMessage) { const buttonRow = new ActionRow(); if (!client.config.isDevelopment || message.author.isOwner()) { - // @ts-expect-error: outdated @discord.js/builders buttonRow.addComponents(new ButtonComponent().setStyle(ButtonStyle.Link).setLabel('Invite Me').setURL(util.invite)); } buttonRow.addComponents( - // @ts-expect-error: outdated @discord.js/builders new ButtonComponent().setStyle(ButtonStyle.Link).setLabel('Support Server').setURL(client.config.supportGuild.invite), - // @ts-expect-error: outdated @discord.js/builders new ButtonComponent().setStyle(ButtonStyle.Link).setLabel('GitHub').setURL(packageDotJSON.repository) ); return await message.util.reply({ content: 'Here are some useful links:', components: [buttonRow] }); |