aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Bradley Reynolds <[email protected]>2022-12-20 12:41:15 -0600
committerGravatar GitHub <[email protected]>2022-12-20 12:41:15 -0600
commit5e0c8b78e520abbc780aba89ce470ba5a087a458 (patch)
tree116053d78fcd553a603027815ec5b68d474e98ff
parentMerge pull request #2357 from python-discord/update-modlog-for-threads (diff)
update create reminder permission error to mention bot-commands
-rw-r--r--bot/exts/utils/reminders.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py
index 1991a687f..368f08510 100644
--- a/bot/exts/utils/reminders.py
+++ b/bot/exts/utils/reminders.py
@@ -13,7 +13,7 @@ from pydis_core.utils.scheduling import Scheduler
from bot.bot import Bot
from bot.constants import (
- Guild, Icons, MODERATION_ROLES, NEGATIVE_REPLIES, POSITIVE_REPLIES, Roles, STAFF_PARTNERS_COMMUNITY_ROLES
+ Channels, Guild, Icons, MODERATION_ROLES, NEGATIVE_REPLIES, POSITIVE_REPLIES, Roles, STAFF_PARTNERS_COMMUNITY_ROLES
)
from bot.converters import Duration, UnambiguousUser
from bot.errors import LockedResourceError
@@ -280,7 +280,8 @@ class Reminders(Cog):
# If they don't have permission to set a reminder in this channel
if ctx.channel.id not in WHITELISTED_CHANNELS:
- await send_denial(ctx, "Sorry, you can't do that here!")
+ bot_commands = ctx.guild.get_channel(Channels.bot_commands)
+ await send_denial(ctx, f"Sorry, you can only do that in {bot_commands.mention}!")
return
# Get their current active reminders