#client.load_extension('cogs.info') AttributeError 'Client' object has no attribute 'load_extension'
1 messages · Page 1 of 1 (latest)
or commands.Bot
eh
you try a slash command with a prefix....
change discord.Bot to commands.Bot....
?
you mean slash commands?
from discord.commands import slash_command
yes
you should add case_intensitive=True to the commands.Bot
so you can use $HeLLo
and other stuff
you can get it with thison_command_error
help_command=None in the commands.Bot to create a custome one
refer to https://docs.pycord.dev/en/master/ext/commands/api.html#checks
Also please use #998272089343668364 or create a new thread if you have a new query that's unrelated to the original thread
as per https://docs.pycord.dev/en/master/ext/commands/api.html#discord.ext.commands.has_permissions
This check raises a special exception, MissingPermissions that is inherited from CheckFailure.
so in your error handler, you should add anisinstanceforcommands.MissingPermissions