mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Handle NSFWChannelRequired in events. (#4933)
This commit is contained in:
parent
4813c68185
commit
edbd31413b
@ -294,6 +294,8 @@ def init_events(bot, cli_flags):
|
||||
await ctx.send(_("That command is not available in DMs."))
|
||||
elif isinstance(error, commands.PrivateMessageOnly):
|
||||
await ctx.send(_("That command is only available in DMs."))
|
||||
elif isinstance(error, commands.NSFWChannelRequired):
|
||||
await ctx.send(_("That command is only available in NSFW channels."))
|
||||
elif isinstance(error, commands.CheckFailure):
|
||||
pass
|
||||
elif isinstance(error, commands.CommandOnCooldown):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user