Fix fix typo
This commit is contained in:
parent
2009c9d310
commit
8f1c628170
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ async def whitelist(
|
||||||
)
|
)
|
||||||
async def execute(inter: disnake.AppCmdInter, command:str):
|
async def execute(inter: disnake.AppCmdInter, command:str):
|
||||||
await inter.response.defer()
|
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")
|
await inter.edit_original_response(content="Only the server admins may run this command")
|
||||||
return
|
return
|
||||||
with Client(os.getenv("RCON_IP"), int(os.getenv("RCON_PORT")), passwd=os.getenv("RCON_PASSWORD")) as client:
|
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",
|
name="publicapply",
|
||||||
description="Creates a button to open the application menu",
|
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=[
|
await inter.response.send_message(components=[
|
||||||
disnake.ui.Button(label="Apply", style=disnake.ButtonStyle.success, custom_id="Apply"),
|
disnake.ui.Button(label="Apply", style=disnake.ButtonStyle.success, custom_id="Apply"),
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue