mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
fix: small change to getEmbedQueueAuthor for bitrate calculation
This commit is contained in:
1 parent
7018b690bb
commit
f3de02a6a8
1 file changed
+2
-1
@@ -209,8 +209,9 @@ abstract class BaseInteractionWithEmbedResponse extends BaseInteraction {
|
||||
interaction: MessageComponentInteraction | ChatInputCommandInteraction,
|
||||
queue: GuildQueue
|
||||
): EmbedAuthorOptions {
|
||||
const bitrate = queue.channel ? queue.channel.bitrate / 1000 : 0;
|
||||
return {
|
||||
name: `Channel: ${queue.channel!.name} (${queue.channel!.bitrate / 1000}kbps)`,
|
||||
name: `Channel: ${queue.channel!.name} (${bitrate}kbps)`,
|
||||
iconURL: interaction.guild!.iconURL() || this.embedOptions.info.fallbackIconUrl
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user