Skip to content

Commit

Permalink
fixed analyticslog
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevalicjus committed Jan 12, 2022
1 parent 454ba91 commit 1c2d35c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cogs/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ async def analytics_err_handler(self, ctx, error):
await ctx.send("Please provide an option for the setting (yes/no)")

@commands.command()
async def analyticschannel(self, ctx, channel: discord.TextChannel):
async def analyticslog(self, ctx, channel: discord.TextChannel):
if self.checkInvos(ctx.guild.id) == 1:
await ctx.message.delete(delay=3)

Expand All @@ -585,8 +585,8 @@ async def analyticschannel(self, ctx, channel: discord.TextChannel):
with open(f'configs/{ctx.guild.id}.json', 'w') as f:
json.dump(config, f, indent = 4)

@analyticschannel.error
async def analyticschannel_err_handler(self, ctx, error):
@analyticslog.error
async def analyticslog_err_handler(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
if error.param.name == "channel":
await ctx.send("Your command is missing a required argument: a valid channel (Channel mention or Channel ID)")
Expand Down

0 comments on commit 1c2d35c

Please sign in to comment.