Fix bug preventing remove from working.
build_develop / build (push) Successful in 1m40s

Remove guild ids.
This commit is contained in:
2023-12-23 14:48:12 -05:00
parent 2632bb883f
commit 2cde9f7109
+3 -4
View File
@@ -10,7 +10,7 @@ from sqlalchemy.orm import Session
from database_setup.sql_data_classes import Presences, engine 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. Holds the view commands.
""" """
@@ -21,9 +21,8 @@ class RemoveCog(commands.Cog, name="View Commands"):
""" """
@nextcord.slash_command( @nextcord.slash_command(
guild_ids=[1000247361639030804],
default_member_permissions=nextcord.Permissions(administrator=True), default_member_permissions=nextcord.Permissions(administrator=True),
) # TODO remove guild ids )
async def remove(self, interaction: nextcord.Interaction): async def remove(self, interaction: nextcord.Interaction):
""" """
Parent slash command for set. Never called. 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) await interaction.response.send_message("Presence deleted.", ephemeral=True)
@remove.on_autocomplete("presence_str") @presence.on_autocomplete("presence_str")
async def presence_autocomplete( async def presence_autocomplete(
self, interaction: nextcord.Interaction, presence_str: str self, interaction: nextcord.Interaction, presence_str: str
): ):