From edbd31413be72d5935bd6e0961db9763f665a552 Mon Sep 17 00:00:00 2001 From: PredaaA <46051820+PredaaA@users.noreply.github.com> Date: Sat, 3 Apr 2021 23:23:53 +0200 Subject: [PATCH] Handle NSFWChannelRequired in events. (#4933) --- redbot/core/events.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redbot/core/events.py b/redbot/core/events.py index 98b55e644..31cd838a0 100644 --- a/redbot/core/events.py +++ b/redbot/core/events.py @@ -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):