From 32bd63b4901719302830edfbaae84865ce523c4c Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Thu, 13 Jul 2023 13:46:56 +0200 Subject: [PATCH] feat: Show channel name and bitrate in queue/nowplaying --- commands/nowplaying.js | 4 +++- commands/queue.js | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/commands/nowplaying.js b/commands/nowplaying.js index 55e525c..c4882bd 100644 --- a/commands/nowplaying.js +++ b/commands/nowplaying.js @@ -93,7 +93,9 @@ module.exports = { embeds: [ new EmbedBuilder() .setAuthor({ - name: interaction.guild.name, + name: `Channel: ${queue.channel.name} (${ + queue.channel.bitrate / 1000 + }kbps)`, iconURL: interaction.guild.iconURL() }) .setDescription( diff --git a/commands/queue.js b/commands/queue.js index a22a452..50e0b95 100644 --- a/commands/queue.js +++ b/commands/queue.js @@ -88,7 +88,9 @@ module.exports = { embeds: [ new EmbedBuilder() .setAuthor({ - name: interaction.guild.name, + name: `Channel: ${queue.channel.name} (${ + queue.channel.bitrate / 1000 + }kbps)`, iconURL: interaction.guild.iconURL() }) .setDescription(`**Queue**\n${queueString}`) @@ -122,7 +124,9 @@ module.exports = { embeds: [ new EmbedBuilder() .setAuthor({ - name: interaction.guild.name, + name: `Channel: ${queue.channel.name} (${ + queue.channel.bitrate / 1000 + }kbps)`, iconURL: interaction.guild.iconURL() }) .setDescription(