You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The data for our commandconsteventCommandData={name: 'event',description: 'Create an event!',options: [{name: 'title',type: 'STRING',description: 'The title of the event',required: true,}],};client.once('ready',()=>{// Creating a global commandclient.application.commands.create(eventCommandData);});client.on('interaction',interaction=>{// If the interaction isn't a slash command, returnif(!interaction.isCommand())return;// Check if it is the correct commandif(interaction.commandName==='event'){// Get the input of the userconsttitle=interaction.options[0].value;createEvent(interaction.channel,title);}});
Possible issues:
interaction.channel.send() might not work as normal due to the 15 minute interaction limit of Slash Commands.
The text was updated successfully, but these errors were encountered:
Prerequisites:
Implementation mock: (based on docs by PR #5448 author)
Possible issues:
interaction.channel.send()
might not work as normal due to the 15 minute interaction limit of Slash Commands.The text was updated successfully, but these errors were encountered: