339
340 def wait_check(reaction, user):
341 res = (user.id != self.bot.user.id
342 and reaction.message.id == info.message.id)343
344 if info.reactions:
345 res = res and str(reaction.emoji) in info.reactions
57 phrases_prompt_string = phrases_prompt_string[:3500] + "\n... (and some more)"
58
59 embed = discord.Embed(title="Confirm raidphrase batch",
60 color=discord.Color.dark_orange(), 61 description=f"{phrases_prompt_string}\n\nShould we add these {len(new_phrases)} phrases?")
62
63 if duplicate_count > 0:
58
59 embed = discord.Embed(title="Confirm raidphrase batch",
60 color=discord.Color.dark_orange(),
61 description=f"{phrases_prompt_string}\n\nShould we add these {len(new_phrases)} phrases?") 62
63 if duplicate_count > 0:
64 embed.set_footer(text=f"Note: we found {duplicate_count} duplicates in your list.")
950 title=header,
951 description=description)
952 .add_field(name=loc["queue_embed"]["embed_body"].format(len(data), YTDLSource.parse_duration(getTotalDuration(data))), value=queue)
953 .set_footer(text=loc["queue_embed"]["page"].format(page, pages)) 954 )
955 return embed
956
949 embed = (discord.Embed(
950 title=header,
951 description=description)
952 .add_field(name=loc["queue_embed"]["embed_body"].format(len(data), YTDLSource.parse_duration(getTotalDuration(data))), value=queue) 953 .set_footer(text=loc["queue_embed"]["page"].format(page, pages))
954 )
955 return embed
A continuation line is under-indented for a visual indentation.