Remove duplicate commands in autoreact

This commit is contained in:
Zeva Rose 2021-07-01 18:08:08 -06:00
parent 228a4844df
commit b743835d47

View file

@ -55,8 +55,8 @@ class AutoReactCog(commands.Cog):
@cog_ext.cog_subcommand( @cog_ext.cog_subcommand(
base="autoreact", base="autoreact",
name="remove", name="delete",
description="Remove an autoreact from a channel", description="Delete an autoreact from a channel",
guild_ids=[418094694325813248, 578757004059738142], guild_ids=[418094694325813248, 578757004059738142],
options=[ options=[
create_option( create_option(
@ -67,7 +67,7 @@ class AutoReactCog(commands.Cog):
) )
], ],
) )
async def _autoreact_remove(self, ctx, channel: TextChannel): async def _autoreact_delete(self, ctx, channel: TextChannel):
exists = self.db.jarvis.autoreact.delete_one( exists = self.db.jarvis.autoreact.delete_one(
{"guild": channel.guild.id, "channel": channel.id} {"guild": channel.guild.id, "channel": channel.id}
) )