mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Improve command error responses (#3951)
* Update settings.py * Update modlog.py
This commit is contained in:
parent
373dcded2c
commit
8d553a3fc6
@ -110,7 +110,7 @@ class ModSettings(MixinMeta):
|
||||
else:
|
||||
cur_setting = await self.config.guild(guild).ban_mention_spam()
|
||||
if not cur_setting:
|
||||
await ctx.send_help()
|
||||
await ctx.send(_("Autoban for mention spam is already disabled."))
|
||||
return
|
||||
await self.config.guild(guild).ban_mention_spam.set(False)
|
||||
await ctx.send(_("Autoban for mention spam disabled."))
|
||||
|
||||
@ -57,7 +57,7 @@ class ModLog(commands.Cog):
|
||||
try:
|
||||
await modlog.get_modlog_channel(guild)
|
||||
except RuntimeError:
|
||||
await ctx.send_help()
|
||||
await ctx.send(_("Mod log is already disabled."))
|
||||
else:
|
||||
await modlog.set_modlog_channel(guild, None)
|
||||
await ctx.send(_("Mod log deactivated."))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user