aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/fun.py
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2020-09-21 20:12:58 +1000
committerGravatar scragly <[email protected]>2020-09-21 20:12:58 +1000
commit1c0afb81dbd690c4051ee90f59d63bb171d1656f (patch)
tree0cfe3f1df380f131d1444891094a464a6c556b68 /bot/exts/evergreen/fun.py
parentMerge branch 'master' into clean_uwu (diff)
Use clean_content when fetching linked msgs for fun commands.
Diffstat (limited to 'bot/exts/evergreen/fun.py')
-rw-r--r--bot/exts/evergreen/fun.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/fun.py b/bot/exts/evergreen/fun.py
index 1668982b..de6a92c6 100644
--- a/bot/exts/evergreen/fun.py
+++ b/bot/exts/evergreen/fun.py
@@ -87,7 +87,7 @@ class Fun(Cog):
await ctx.send(content=converted_text, embed=embed)
@commands.command(name="randomcase", aliases=("rcase", "randomcaps", "rcaps",))
- async def randomcase_command(self, ctx: Context, *, text: str) -> None:
+ async def randomcase_command(self, ctx: Context, *, text: clean_content(fix_channel_mentions=True)) -> None:
"""Randomly converts the casing of a given `text`."""
def conversion_func(text: str) -> str:
"""Randomly converts the casing of a given string."""
@@ -193,7 +193,7 @@ class Fun(Cog):
msg = await Fun._get_discord_message(ctx, text)
# Ensure the user has read permissions for the channel the message is in
if isinstance(msg, Message) and ctx.author.permissions_in(msg.channel).read_messages:
- text = msg.content
+ text = msg.clean_content
# Take first embed because we can't send multiple embeds
if msg.embeds:
embed = msg.embeds[0]