Improve command error responses (#3951)

* Update settings.py

* Update modlog.py
This commit is contained in:
jack1142 2020-06-18 13:46:20 +02:00 committed by GitHub
parent 373dcded2c
commit 8d553a3fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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."))

View File

@ -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."))