fix: added configurable fallback icon url for use in embeds

This commit is contained in:
Marius Begby committed 2023-08-29 20:32:26 +02:00
1 parent e47256a15e
commit 69fff97e38
16 files changed
+25 -22

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.success} Leaving channel**\nCleared the track queue and left voice channel.\n\nTo play more music, use the **\`/play\`** command!`
+3 -3
View File
@@ -139,7 +139,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.success} Loop mode disabled**\nChanging loop mode from **\`${currentModeUserString}\`** to **\`${modeUserString}\`**.\n\nThe ${currentModeUserString} will no longer play on repeat!`
@@ -158,7 +158,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.autoplaying} Loop mode changed**\nChanging loop mode from **\`${currentModeUserString}\`** to **\`${modeUserString}\`**.\n\nWhen the queue is empty, similar tracks will start playing!`
@@ -176,7 +176,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.looping} Loop mode changed**\nChanging loop mode from **\`${currentModeUserString}\`** to **\`${modeUserString}\`**.\n\nThe ${modeUserString} will now play on repeat!`
@@ -138,7 +138,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: `Channel: ${queue.channel!.name} (${queue.channel!.bitrate / 1000}kbps)`,
iconURL: interaction.guild!.iconURL() || ''
iconURL: interaction.guild!.iconURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
(queue.node.isPaused()
+1 -1
View File
@@ -72,7 +72,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.pauseResumed} ${
+3 -3
View File
@@ -269,7 +269,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.success} Added playlist to queue**\n**${durationFormat} [${
@@ -301,7 +301,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.audioStartedPlaying} Started playing**\n**${durationFormat} [${
@@ -330,7 +330,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`${embedOptions.icons.success} **Added to queue**\n**${durationFormat} [${track.title}](${
+2 -2
View File
@@ -116,7 +116,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: `Channel: ${queue.channel!.name} (${queue.channel!.bitrate / 1000}kbps)`,
iconURL: interaction.guild!.iconURL() || ''
iconURL: interaction.guild!.iconURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`${repeatModeString}` + `**${embedOptions.icons.queue} Tracks in queue**\n${queueString}`
@@ -153,7 +153,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: `Channel: ${queue.channel!.name} (${queue.channel!.bitrate / 1000}kbps)`,
iconURL: interaction.guild!.iconURL() || ''
iconURL: interaction.guild!.iconURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.audioPlaying} Now playing**\n` +
+1 -1
View File
@@ -92,7 +92,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.success} Removed track**\n**${durationFormat} [${removedTrack.title}](${
+1 -1
View File
@@ -173,7 +173,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.success} Seeking to duration**\nSeeking to **\`${durationString}\`** in current track.`
+1 -1
View File
@@ -60,7 +60,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.shuffled} Shuffled queue tracks**\nThe **${queue.tracks.data.length}** tracks in the queue has been shuffled.\n\nView the new queue order with **\`/queue\`**.`
+2 -2
View File
@@ -92,7 +92,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.skipped} Skipped track**\n**${durationFormat} [${
@@ -156,7 +156,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.skipped} Skipped track**\n**${durationFormat} [${
+1 -1
View File
@@ -63,7 +63,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.success} Stopped playing**\nStopped playing audio and cleared the track queue.\n\nTo play more music, use the **\`/play\`** command!`
+2 -2
View File
@@ -100,7 +100,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.volumeMuted} Audio muted**\nPlayback audio has been muted, because volume was set to **\`${volume}%\`**.`
@@ -116,7 +116,7 @@ const command: CustomSlashCommandInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.volumeChanged} Volume changed**\nPlayback volume has been changed to **\`${volume}%\`**.`
@@ -56,7 +56,7 @@ const component: CustomComponentInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.success} Disabled filters**\nAll audio filters have been disabled.`
@@ -104,7 +104,7 @@ const component: CustomComponentInteraction = {
new EmbedBuilder()
.setAuthor({
name: authorName,
iconURL: interaction.user.avatarURL() || ''
iconURL: interaction.user.avatarURL() || embedOptions.info.fallbackIconUrl
})
.setDescription(
`**${embedOptions.icons.skipped} Skipped track**\n**${durationFormat} [${skippedTrack.title}](${