mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -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:
|
else:
|
||||||
cur_setting = await self.config.guild(guild).ban_mention_spam()
|
cur_setting = await self.config.guild(guild).ban_mention_spam()
|
||||||
if not cur_setting:
|
if not cur_setting:
|
||||||
await ctx.send_help()
|
await ctx.send(_("Autoban for mention spam is already disabled."))
|
||||||
return
|
return
|
||||||
await self.config.guild(guild).ban_mention_spam.set(False)
|
await self.config.guild(guild).ban_mention_spam.set(False)
|
||||||
await ctx.send(_("Autoban for mention spam disabled."))
|
await ctx.send(_("Autoban for mention spam disabled."))
|
||||||
|
|||||||
@ -57,7 +57,7 @@ class ModLog(commands.Cog):
|
|||||||
try:
|
try:
|
||||||
await modlog.get_modlog_channel(guild)
|
await modlog.get_modlog_channel(guild)
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
await ctx.send_help()
|
await ctx.send(_("Mod log is already disabled."))
|
||||||
else:
|
else:
|
||||||
await modlog.set_modlog_channel(guild, None)
|
await modlog.set_modlog_channel(guild, None)
|
||||||
await ctx.send(_("Mod log deactivated."))
|
await ctx.send(_("Mod log deactivated."))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user