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,
)
def embed(description):
e = disnake.Embed(
def create_embed(description):
embed = disnake.Embed(
description=description,
color=EMBED_COLOR,
)
if formatted_duration and len(players[message.guild.id].queue) > 1:
e.set_footer(text=f"{formatted_duration} in total")
return e
embed.set_footer(text=f"{formatted_duration} in total")
return embed
await disnake_paginator.ButtonPaginator(
invalid_user_function=utils.invalid_user_handler,
color=EMBED_COLOR,
segments=list(
map(
embed,
create_embed,
[
"\n\n".join(
[