From 967d6ad111c83486f54a995c830b893dbaf5bf0f Mon Sep 17 00:00:00 2001 From: flifloo Date: Wed, 8 Apr 2020 19:32:30 +0200 Subject: [PATCH] Show reaction list on waiting list --- extensions/speak.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/speak.py b/extensions/speak.py index 29f5443..fd51639 100644 --- a/extensions/speak.py +++ b/extensions/speak.py @@ -69,8 +69,12 @@ class Speak(commands.Cog): await ctx.message.add_reaction("\u274C") else: embed = Embed(title="Waiting list") + if len(self.reaction) != 0: + for i, reaction in enumerate(self.reaction): + embed.add_field(name=f"Reaction N°{i+1}", value=ctx.guild.get_member(reaction).display_name, + inline=False) for i, speaker in enumerate(self.waiting): - embed.add_field(name=f"N°{i+1}", value=ctx.guild.get_member(speaker).display_name, inline=True) + embed.add_field(name=f"N°{i+1}", value=ctx.guild.get_member(speaker).display_name, inline=False) await ctx.send(embed=embed) @speak.group("next", pass_context=True)