This commit is contained in:
AF 2022-08-19 03:48:42 +03:00
parent d7ff4916b4
commit 8fada56836
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
aiohttp~=3.7.4.post0
discord.py~=1.7.3
git+https://gitea.ongoteam.net/PTV/v6d1tokens.git@8b525ee05be22891a1c18d5e96153807f79930be
git+https://gitea.ongoteam.net/PTV/v6d2ctx.git@57919e65069e62fc31666adebd6c107be067b724
git+https://gitea.parrrate.ru/PTV/v6d1tokens.git@c4c6cf43b1082c666e6891f73df825acee6ae86d
git+https://gitea.parrrate.ru/PTV/v6d2ctx.git@096314b9bbb6153a9a75afcc16ddf7833384df18

View File

@ -96,7 +96,7 @@ class Poll:
cls, ctx: Context, options: list[tuple[str, discord.Emoji | str]], title: str,
votes: dict[discord.Member, str]
):
message: discord.Message = await ctx.reply('creating poll...')
message: discord.Message = await ctx.channel.send('creating poll...')
async with lock_for(message, 'failed to create poll'):
if len(set(emoji for option, emoji in options)) != len(options):
raise Explicit('duplicate emojis')