-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from AlecM33/wildcard
wildcard command
- Loading branch information
Showing
4 changed files
with
119 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const interactionHandlers = require('../modules/interaction-handlers.js'); | ||
const { SlashCommandBuilder } = require('@discordjs/builders'); | ||
|
||
module.exports = { | ||
data: new SlashCommandBuilder() | ||
.setName('wildcard') | ||
.setDescription('View the current wildcard standings.'), | ||
async execute (interaction) { | ||
try { | ||
await interactionHandlers.wildcardHandler(interaction); | ||
} catch (e) { | ||
console.error(e); | ||
if (interaction.deferred && !interaction.replied) { | ||
await interaction.followUp('There was an error processing this command. If it persists, please reach out to the developer.'); | ||
} else if (!interaction.replied) { | ||
await interaction.reply('There was an error processing this command. If it persists, please reach out to the developer.'); | ||
} | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters