Add some basic error handling for registration

This commit is contained in:
Gnome
2021-09-02 13:07:07 +01:00
parent 41e3d13eaf
commit fe780a04a2
3 changed files with 25 additions and 6 deletions

View File

@@ -1130,8 +1130,6 @@ class BotBase(GroupMixin):
command = self.get_command(command_name)
if command is None:
raise errors.CommandNotFound(f'Command "{command_name}" is not found')
elif not command.slash_command:
return
# Ensure the interaction channel is usable
channel = interaction.channel