Updated guild info command to query name and id as well

This commit is contained in:
2023-12-05 00:00:08 +01:00
parent bc54546788
commit 4c29b8dd47
2 changed files with 89 additions and 39 deletions

View File

@@ -7,7 +7,7 @@ module.exports = {
name: "guild",
description: "Subcommands for guilds",
type: "slash",
dev: false,
dev: true,
public: true,
data: new SlashCommandBuilder()
@@ -30,9 +30,19 @@ module.exports = {
.setDescription("Get info about a guild.")
.addStringOption(option =>
option
.setName("ign")
.setName("query")
.setDescription("The IGN of a member.")
.setRequired(true)
).
addStringOption(option =>
option
.setName("type")
.setDescription("The type of query.")
.addChoices(
{ name: "Guild Member", value: "ign" },
{ name: "Guild Name", value: "name" },
{ name: "Guild Id", value: "id" }
)
)
),