fix: small change to getEmbedQueueAuthor for bitrate calculation

This commit is contained in:
Marius Begby committed 2023-09-14 13:46:24 +02:00
1 parent 7018b690bb
commit f3de02a6a8
1 file changed
+2 -1
+2 -1
View File
@@ -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
};
}