/[sudobot]/trunk/src/commands/information/LookupCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/information/LookupCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 290 by rakin, Mon Jul 29 17:29:23 2024 UTC revision 344 by rakin, Mon Jul 29 17:29:40 2024 UTC
# Line 1  Line 1 
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    
# Line 19  export default class LookupCommand exten Line 18  export default class LookupCommand exten
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          }          }

Legend:
Removed from v.290  
changed lines
  Added in v.344

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26