Skip to content

I cannot for the life of me understand how to get an Interaction (context: for ephemeral response) #9854

Closed Answered by LostLuma
TPEcool asked this question in Q&A
Discussion options

You must be logged in to vote

Hello. Commands added to a CommandTree are different from text-based chat commands in that they use Discord's somewhat-new ability for bots to create slash commands that are more integrated into the app.

To have your bot's commands show up inside Discord when you type the / (and command name) you will need to sync your tree to Discord after adding commands to it using the CommandTree.sync method. You will need to do this if you add, change, or remove any of your commands.

As a starting point you can sync the tree either in your bot's setup_book like the example (though this is not really recommended), or create a regular text command that only you as the bot owner can use whenever you hav…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@MCausc78
Comment options

@LostLuma
Comment options

@TPEcool
Comment options

@MCausc78
Comment options

@TPEcool
Comment options

Answer selected by TPEcool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants