Skip to content
Advertisement

How to make a sub command without trigger discord.ext.commands.errors.MissingRequiredArgument?

(This is my first post by the way <3) I am making a discord.py bot and I want a command that will either list warnings (warnings list ) for a user, clear warnings for a user (warnings clear ) or give a help message for the command (anything that does not fit the other two commands)! Here is the code:

JavaScript

I have tried an if statement and using @warnings.error but it has not worked, I have also searched the previous questions with this same error message but they are not quite the same! :( By the way the code itself isnt the problem :)

What I expect:

!warnings

JavaScript

What I get:

JavaScript

Advertisement

Answer

use param=None to do a sub command, maybe you can search how to make a custom help, that’ll help you.

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