Context Menu Commands

How to make context menu commands with Pycord - detailed explanation with examples.

triangle-exclamation

What are User Commands and Message Commands?

Preview of User commands and Message commands - click to expand

When you right click a message, you may see a option called "Apps". Hover over it and you can see commands a bot can run with that message. These are called message commands.

When you right click a message in the user list, you can once again see an option called "Apps". Hover over it and you can see commands a bot can run with that message. These are called user commands.

How to create User Commands

Docs: https://pycord.readthedocs.io/en/master/api.html#discord.Bot.user_commandarrow-up-right

Very Simple!

If you want to make the command global, remove guild_ids. Note that global application commands can take up to an hour to register.

How to create Message Commands

Docs: https://pycord.readthedocs.io/en/master/api.html#discord.Bot.message_commandarrow-up-right

Similar to user commands,

Last updated