feature team search
This commit is contained in:
@@ -86,6 +86,31 @@ const commands = [
|
||||
.setName("list_subscriptions")
|
||||
.setDescription("List all game subscriptions for this server")
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
new SlashCommandBuilder()
|
||||
.setName("findteam")
|
||||
.setDescription("Find a team by name")
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName("teamname")
|
||||
.setDescription("The team name to search for")
|
||||
.setRequired(true)
|
||||
)
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName("game")
|
||||
.setDescription("Filter by game")
|
||||
.setRequired(false)
|
||||
.addChoices(
|
||||
{ name: "Big Ballers VR", value: "Big Ballers VR" },
|
||||
{ name: "Blacktop Hoops", value: "Blacktop Hoops" },
|
||||
{ name: "Breachers", value: "Breachers" },
|
||||
{ name: "Echo Arena", value: "Echo Arena" },
|
||||
{ name: "Echo Combat", value: "Echo Combat" },
|
||||
{ name: "Gun Raiders", value: "Gun Raiders" },
|
||||
{ name: "Nock", value: "Nock" },
|
||||
{ name: "VAIL", value: "VAIL" }
|
||||
)
|
||||
),
|
||||
];
|
||||
|
||||
const rest = new REST({ version: "10" }).setToken(process.env.DISCORD_TOKEN);
|
||||
|
||||
Reference in New Issue
Block a user