Remove duplicate commands in autoreact
This commit is contained in:
parent
228a4844df
commit
b743835d47
1 changed files with 3 additions and 3 deletions
|
@ -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}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue