Skip to content

Commit 270483f

Browse files
Jerrie-Ariesfourjr
andauthored
Apply suggestions from code review
Co-authored-by: Jia Rong Yee <[email protected]>
1 parent 0bfb02e commit 270483f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cogs/utility.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,17 +690,17 @@ async def mention(self, ctx, *mention: Union[discord.Role, discord.Member, str])
690690
elif (
691691
len(mention) == 1
692692
and isinstance(mention[0], str)
693-
and mention[0] in ["disable", "reset"]
693+
and mention[0].lower() in ["disable", "reset"]
694694
):
695-
option = mention[0]
695+
option = mention[0].lower()
696696
if option == "disable":
697697
embed = discord.Embed(
698698
description=f"Disabled mention on thread creation.", color=self.bot.main_color,
699699
)
700700
self.bot.config["mention"] = None
701701
else:
702702
embed = discord.Embed(
703-
description="`mention` had been reset to default.", color=self.bot.main_color,
703+
description="`mention` is reset to default.", color=self.bot.main_color,
704704
)
705705
self.bot.config.remove("mention")
706706
await self.bot.config.update()

0 commit comments

Comments
 (0)