From 9db51b24d7284554bcca9a9b83795212c6860da9 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Sun, 14 Apr 2024 12:21:15 -0400 Subject: [PATCH] Add return so that role command doesn't error on failed permission check --- techsupport_bot/commands/role.py | 1 + 1 file changed, 1 insertion(+) diff --git a/techsupport_bot/commands/role.py b/techsupport_bot/commands/role.py index 4ca81ae92..59b5f9e61 100644 --- a/techsupport_bot/commands/role.py +++ b/techsupport_bot/commands/role.py @@ -158,6 +158,7 @@ async def role_command_base( "You are not allowed to execute this command" ) await interaction.response.send_message(embed=embed, ephemeral=True) + return if len(role_options) == 0: embed = auxiliary.prepare_deny_embed("No self assignable roles are setup")