0

Currently I am using on_message() for reading message.

So I would like to get the command name and call specific function based on command name.

  • the question needs sufficient code for a minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example – D.L Oct 30 '22 at 09:37
  • Try to look up for Slash_Commands, even if you include more details in your question it wouldn't be possible to cover everything in one answer. – Carlos Nov 01 '22 at 16:34

1 Answers1

0

If anyone is looking for the same then here is the answer:

@client.event
async def on_message(message):
   cmdName = message.interaction.name