refactor(commands/voice/queue): tweak variable names

This commit is contained in:
2026-05-25 17:46:30 -04:00
parent 38d0404529
commit 674998525e
+5 -5
View File
@@ -203,21 +203,21 @@ async def queue_or_play(message, edited=False):
natural=True, natural=True,
) )
def embed(description): def create_embed(description):
e = disnake.Embed( embed = disnake.Embed(
description=description, description=description,
color=EMBED_COLOR, color=EMBED_COLOR,
) )
if formatted_duration and len(players[message.guild.id].queue) > 1: if formatted_duration and len(players[message.guild.id].queue) > 1:
e.set_footer(text=f"{formatted_duration} in total") embed.set_footer(text=f"{formatted_duration} in total")
return e return embed
await disnake_paginator.ButtonPaginator( await disnake_paginator.ButtonPaginator(
invalid_user_function=utils.invalid_user_handler, invalid_user_function=utils.invalid_user_handler,
color=EMBED_COLOR, color=EMBED_COLOR,
segments=list( segments=list(
map( map(
embed, create_embed,
[ [
"\n\n".join( "\n\n".join(
[ [