aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-06-25 16:25:13 -0700
committerGravatar GitHub <[email protected]>2021-06-25 16:25:13 -0700
commit2351128dad5f522c330c7ecd23cfac5fff6b3b13 (patch)
treea0927dfe4481fe5f9fcc0fb8c29c3848460312db
parentReorder everyone ping filter so it fires after watch_regex (diff)
parentMerge 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.py2
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)