refactor(commands/voice/queue): tweak variable names
This commit is contained in:
@@ -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(
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user