From 8f1c6281707693a0456479c15b6f94a2f656f94f Mon Sep 17 00:00:00 2001 From: insert Date: Tue, 14 May 2024 17:19:34 -0400 Subject: [PATCH] Fix fix typo --- applicationbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applicationbot.py b/applicationbot.py index 801aea1..cac96c7 100644 --- a/applicationbot.py +++ b/applicationbot.py @@ -105,7 +105,7 @@ async def whitelist( ) async def execute(inter: disnake.AppCmdInter, command:str): await inter.response.defer() - if int(os.getenv("ADMIN_ROLE_ID")) not in user.roles: + if int(os.getenv("ADMIN_ROLE_ID")) not in inter.user.roles: await inter.edit_original_response(content="Only the server admins may run this command") return with Client(os.getenv("RCON_IP"), int(os.getenv("RCON_PORT")), passwd=os.getenv("RCON_PASSWORD")) as client: @@ -128,7 +128,7 @@ async def apply(inter: disnake.AppCmdInter): name="publicapply", description="Creates a button to open the application menu", ) -async def apply(inter: disnake.AppCmdInter): +async def publicapply(inter: disnake.AppCmdInter): await inter.response.send_message(components=[ disnake.ui.Button(label="Apply", style=disnake.ButtonStyle.success, custom_id="Apply"), ])