aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-13 20:39:09 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-13 20:39:09 -0500
commit3d0f8d6284fbff51881ba704f73765100ffc5f47 (patch)
tree43cd14b46b32583cea76b5e0edd709b1c8642636 /src/commands/info
parent6a7386a181e788927a4c04e5b39ac2a4275918b6 (diff)
downloadtanzanite-3d0f8d6284fbff51881ba704f73765100ffc5f47.tar.gz
tanzanite-3d0f8d6284fbff51881ba704f73765100ffc5f47.tar.bz2
tanzanite-3d0f8d6284fbff51881ba704f73765100ffc5f47.zip
started working on appeals
Diffstat (limited to 'src/commands/info')
-rw-r--r--src/commands/info/guildInfo.ts2
-rw-r--r--src/commands/info/help.ts3
-rw-r--r--src/commands/info/links.ts3
-rw-r--r--src/commands/info/userInfo.ts2
4 files changed, 8 insertions, 2 deletions
diff --git a/src/commands/info/guildInfo.ts b/src/commands/info/guildInfo.ts
index a4b7fb9..ed8a973 100644
--- a/src/commands/info/guildInfo.ts
+++ b/src/commands/info/guildInfo.ts
@@ -1,6 +1,6 @@
import { BushCommand, type ArgType, type BushMessage, type BushSlashMessage, type OptionalArgType } from '#lib';
import assert from 'assert';
-import { GuildDefaultMessageNotifications, GuildExplicitContentFilter } from 'discord-api-types';
+import { GuildDefaultMessageNotifications, GuildExplicitContentFilter } from 'discord-api-types/v9';
import {
ApplicationCommandOptionType,
Embed,
diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts
index 2383566..ef3ef30 100644
--- a/src/commands/info/help.ts
+++ b/src/commands/info/help.ts
@@ -143,14 +143,17 @@ 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 25b040c..d9d5b8a 100644
--- a/src/commands/info/links.ts
+++ b/src/commands/info/links.ts
@@ -22,10 +22,13 @@ 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] });
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts
index 97cdc30..02a3be6 100644
--- a/src/commands/info/userInfo.ts
+++ b/src/commands/info/userInfo.ts
@@ -7,7 +7,7 @@ import {
type BushSlashMessage,
type BushUser
} from '#lib';
-import { APIApplication, TeamMemberMembershipState } from 'discord-api-types';
+import { TeamMemberMembershipState, type APIApplication } from 'discord-api-types/v9';
import {
ActivityType,
ApplicationCommandOptionType,