v1.2.11: Add tournaments command with filtering and improve error handling
Features: - Add /tournaments command with status and game filters - Add tournament API integration to PlayerService - Add beautiful tournament embed builders with prize pools - Protect sync-games from overwriting manual customizations - Improve error handling with proper MessageFlags Changes: - Add getTournamentsData() and getTournamentData() to PlayerService - Add tournament command handler with pagination support - Add tournament embed builders with rich formatting - Update deployment docs for v1.2.10 features - Add issue tracker documentation - Add tournament testing script - Fix ephemeral flags throughout CommandHandler - Improve permission checks with PermissionFlagsBits Version: 1.2.11
This commit is contained in:
@@ -159,6 +159,37 @@ const commands = [
|
||||
.setDescription("The team name to search for")
|
||||
.setRequired(true)
|
||||
),
|
||||
new SlashCommandBuilder()
|
||||
.setName("tournaments")
|
||||
.setDescription("View all available tournaments")
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName("status")
|
||||
.setDescription("Filter tournaments by status (optional)")
|
||||
.setRequired(false)
|
||||
.addChoices(
|
||||
{ name: "📢 Published", value: "Published" },
|
||||
{ name: "⚡ In-progress", value: "In-progress" },
|
||||
{ name: "🏁 Ended", value: "Ended" }
|
||||
)
|
||||
)
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName("game")
|
||||
.setDescription("Filter tournaments by game (optional)")
|
||||
.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: "Orion Drift", value: "Orion Drift" },
|
||||
{ name: "VAIL", value: "VAIL" }
|
||||
)
|
||||
),
|
||||
];
|
||||
|
||||
const rest = new REST({ version: "10" }).setToken(process.env.DISCORD_TOKEN);
|
||||
|
||||
Reference in New Issue
Block a user