Skip to content
Advertisement

discord.py – How can I have 2 arguments in a command?

just wondering how an I have 2 arguments, for example

JavaScript

Like “arg1” and “arg2” Example:

JavaScript

Advertisement

Answer

For 2 args as 2 separate variables you could do something like this

JavaScript

Or if you want to send all args passed as a list you could do… as per the rewrite documentation:

JavaScript

Or if you want to send everything as one argument you could do (documentation):

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement