diff options
author | 2021-06-25 16:25:13 -0700 | |
---|---|---|
committer | 2021-06-25 16:25:13 -0700 | |
commit | 2351128dad5f522c330c7ecd23cfac5fff6b3b13 (patch) | |
tree | a0927dfe4481fe5f9fcc0fb8c29c3848460312db | |
parent | Reorder everyone ping filter so it fires after watch_regex (diff) | |
parent | Merge pull request #1656 from python-discord/swfarnsworth/echo_permissions (diff) |
Merge branch 'main' into fix-reorder-filter-priority
-rw-r--r-- | bot/exts/utils/bot.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/utils/bot.py b/bot/exts/utils/bot.py index a4c828f95..d84709616 100644 --- a/bot/exts/utils/bot.py +++ b/bot/exts/utils/bot.py @@ -44,6 +44,8 @@ class BotCog(Cog, name="Bot"): """Repeat the given message in either a specified channel or the current channel.""" if channel is None: await ctx.send(text) + elif not channel.permissions_for(ctx.author).send_messages: + await ctx.send("You don't have permission to speak in that channel.") else: await channel.send(text) |