aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2020-07-29 00:03:06 +1000
committerGravatar GitHub <[email protected]>2020-07-29 00:03:06 +1000
commit91024b6f92d81eb65fd8cd3735548d2a31921a4e (patch)
tree2790acbe339ce221ea914e0979a7f1add7950cc7
parentAllow specifying a channel to send !embed embeds (diff)
parentcorrect import order (diff)
Merge pull request #1069 from python-discord/fix/poll
-rw-r--r--bot/cogs/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/utils.py b/bot/cogs/utils.py
index 017f3419e..91c6cb36e 100644
--- a/bot/cogs/utils.py
+++ b/bot/cogs/utils.py
@@ -7,7 +7,7 @@ from io import StringIO
from typing import Tuple, Union
from discord import Colour, Embed, utils
-from discord.ext.commands import BadArgument, Cog, Context, command
+from discord.ext.commands import BadArgument, Cog, Context, clean_content, command
from bot.bot import Bot
from bot.constants import Channels, MODERATION_ROLES, STAFF_ROLES
@@ -225,7 +225,7 @@ class Utils(Cog):
@command(aliases=("poll",))
@with_role(*MODERATION_ROLES)
- async def vote(self, ctx: Context, title: str, *options: str) -> None:
+ async def vote(self, ctx: Context, title: clean_content(fix_channel_mentions=True), *options: str) -> None:
"""
Build a quick voting poll with matching reactions with the provided options.