extras.py: Reset cooldown of nickme command in case of someone uses nickme before boosting
Closes issue
@@ -246,8 +246,9 @@ class Extras(commands.Cog):
"""Change your nickname. Nitro Booster and crc only. Works only in DMs. 6 Hours Cooldown."""
member = self.bot.guild.get_member(ctx.author.id)
if self.bot.roles['crc'] not in member.roles and not member.premium_since:
- return await ctx.send("This command can only be used by Nitro Boosters and members of crc!")
- if self.check_nickname(nickname):
+ await ctx.send("This command can only be used by Nitro Boosters and members of crc!")
+ ctx.command.reset_cooldown(ctx)
+ elif self.check_nickname(nickname):
try:
await member.edit(nick=nickname)
await ctx.send(f"Your nickname is now `{nickname}`!")
