diff options
author | 2020-09-21 18:31:13 +1000 | |
---|---|---|
committer | 2020-09-21 18:31:13 +1000 | |
commit | 27d29c0981b5e846d6b5b130d2b07a4927950dab (patch) | |
tree | e862917637540157396e75270791fb15d42b845e | |
parent | Merge pull request #442 from python-discord/reddit-command-fix (diff) |
Prevent uwu output from pinging globally allowed roles.
-rw-r--r-- | bot/exts/evergreen/fun.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/fun.py b/bot/exts/evergreen/fun.py index b0240c45..5d4743e4 100644 --- a/bot/exts/evergreen/fun.py +++ b/bot/exts/evergreen/fun.py @@ -5,7 +5,7 @@ from typing import Callable, Tuple, Union from discord import Embed, Message from discord.ext import commands -from discord.ext.commands import Bot, Cog, Context, MessageConverter +from discord.ext.commands import Bot, Cog, Context, MessageConverter, clean_content from bot import utils from bot.constants import Emojis @@ -46,7 +46,7 @@ class Fun(Cog): await ctx.send(output) @commands.command(name="uwu", aliases=("uwuwize", "uwuify",)) - async def uwu_command(self, ctx: Context, *, text: str) -> None: + async def uwu_command(self, ctx: Context, *, text: clean_content(fix_channel_mentions=True)) -> None: """Converts a given `text` into it's uwu equivalent.""" conversion_func = functools.partial( utils.replace_many, replacements=UWU_WORDS, ignore_case=True, match_case=True |