From 2cde9f7109d3c91b5afef6e986d7f898f99f0843 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sat, 23 Dec 2023 14:48:12 -0500 Subject: [PATCH] Fix bug preventing remove from working. Remove guild ids. --- cogs/commands/remove.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cogs/commands/remove.py b/cogs/commands/remove.py index c3980e4..1f86346 100644 --- a/cogs/commands/remove.py +++ b/cogs/commands/remove.py @@ -10,7 +10,7 @@ from sqlalchemy.orm import Session from database_setup.sql_data_classes import Presences, engine -class RemoveCog(commands.Cog, name="View Commands"): +class RemoveCog(commands.Cog, name="Remove Commands"): """ Holds the view commands. """ @@ -21,9 +21,8 @@ class RemoveCog(commands.Cog, name="View Commands"): """ @nextcord.slash_command( - guild_ids=[1000247361639030804], default_member_permissions=nextcord.Permissions(administrator=True), - ) # TODO remove guild ids + ) async def remove(self, interaction: nextcord.Interaction): """ Parent slash command for set. Never called. @@ -53,7 +52,7 @@ class RemoveCog(commands.Cog, name="View Commands"): await interaction.response.send_message("Presence deleted.", ephemeral=True) - @remove.on_autocomplete("presence_str") + @presence.on_autocomplete("presence_str") async def presence_autocomplete( self, interaction: nextcord.Interaction, presence_str: str ):