1 |
import { Message, Interaction, CacheType, CommandInteraction } from "discord.js"; |
import { CommandInteraction } from "discord.js"; |
2 |
import Client from "../../client/Client"; |
import Client from "../../client/Client"; |
|
import CommandOptions from "../../types/CommandOptions"; |
|
3 |
import InteractionOptions from "../../types/InteractionOptions"; |
import InteractionOptions from "../../types/InteractionOptions"; |
4 |
import BaseCommand from "../../utils/structures/BaseCommand"; |
import BaseCommand from "../../utils/structures/BaseCommand"; |
5 |
|
|
18 |
else if (interaction.options.getSubcommand() === "guild") { |
else if (interaction.options.getSubcommand() === "guild") { |
19 |
await client.commands.get("guildlookup")?.execute(client, interaction, options); |
await client.commands.get("guildlookup")?.execute(client, interaction, options); |
20 |
} |
} |
21 |
|
else if (interaction.options.getSubcommand() === "avatar") { |
22 |
|
await client.commands.get("avatarlookup")?.execute(client, interaction, options); |
23 |
|
} |
24 |
else { |
else { |
25 |
await interaction.reply({ content: "Invalid subcommand given. Must be one of 'user' or 'guild'." }); |
await interaction.reply({ content: "Invalid subcommand given. Must be one of 'user' or 'guild'." }); |
26 |
} |
} |