mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
chore: formatting strings to multiple lines
This commit is contained in:
1 parent
90346e7469
commit
e57dcaf399
8 files changed
+36
-13
No files matched your search
@@ -127,7 +127,9 @@ class FiltersCommand extends BaseSlashCommandInteraction {
|
|||||||
return await interaction.editReply({
|
return await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription('**Toggle filters**\nEnable or disable audio filters for playback from the menu.')
|
.setDescription(
|
||||||
|
'**Toggle filters**\n' + 'Enable or disable audio filters for playback from the menu.'
|
||||||
|
)
|
||||||
.setColor(this.embedOptions.colors.info)
|
.setColor(this.embedOptions.colors.info)
|
||||||
],
|
],
|
||||||
components: [filterActionRow, disableFiltersActionRow]
|
components: [filterActionRow, disableFiltersActionRow]
|
||||||
@@ -146,7 +148,8 @@ class FiltersCommand extends BaseSlashCommandInteraction {
|
|||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setAuthor(this.getEmbedUserAuthor(interaction))
|
.setAuthor(this.getEmbedUserAuthor(interaction))
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.success} Disabled filters**\nAll audio filters have been disabled.`
|
`**${this.embedOptions.icons.success} Disabled filters**\n` +
|
||||||
|
'All audio filters have been disabled.'
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.success)
|
.setColor(this.embedOptions.colors.success)
|
||||||
],
|
],
|
||||||
@@ -160,7 +163,8 @@ class FiltersCommand extends BaseSlashCommandInteraction {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.bot} Coming soon**\nThis functionality has not yet been implemented, and will be available soon.`
|
`**${this.embedOptions.icons.bot} Coming soon**\n` +
|
||||||
|
'This functionality has not yet been implemented, and will be available soon.'
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.info)
|
.setColor(this.embedOptions.colors.info)
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -34,7 +34,9 @@ class LeaveCommand extends BaseSlashCommandInteraction {
|
|||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setAuthor(this.getEmbedUserAuthor(interaction))
|
.setAuthor(this.getEmbedUserAuthor(interaction))
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.success} Leaving channel**\nCleared the track queue and left voice channel.\n\nTo play more music, use the **\`/play\`** command!`
|
`**${this.embedOptions.icons.success} Leaving channel**\n` +
|
||||||
|
'Cleared the track queue and left voice channel.\n\n' +
|
||||||
|
'To play more music, use the **`/play`** command!'
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.success)
|
.setColor(this.embedOptions.colors.success)
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -74,7 +74,8 @@ class LoopCommand extends BaseSlashCommandInteraction {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${repeatModeEmbedIcon} Current loop mode**\nThe looping mode is currently set to **\`${repeatModeEmbedName}\`**.`
|
`**${repeatModeEmbedIcon} Current loop mode**\n` +
|
||||||
|
`The looping mode is currently set to **\`${repeatModeEmbedName}\`**.`
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.info)
|
.setColor(this.embedOptions.colors.info)
|
||||||
]
|
]
|
||||||
@@ -93,7 +94,8 @@ class LoopCommand extends BaseSlashCommandInteraction {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.warning} Oops!**\nLoop mode is already **\`${repeatModeEmbedName}\`**.`
|
`**${this.embedOptions.icons.warning} Oops!**\n` +
|
||||||
|
`Loop mode is already **\`${repeatModeEmbedName}\`**.`
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.warning)
|
.setColor(this.embedOptions.colors.warning)
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -166,7 +166,8 @@ class LyricsCommand extends BaseSlashCommandInteraction {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.warning} No lyrics found**\nThere was no Genius lyrics found for track **${geniusSearchQuery}**.`
|
`**${this.embedOptions.icons.warning} No lyrics found**\n` +
|
||||||
|
`There was no Genius lyrics found for track **${geniusSearchQuery}**.`
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.warning)
|
.setColor(this.embedOptions.colors.warning)
|
||||||
]
|
]
|
||||||
@@ -184,7 +185,9 @@ class LyricsCommand extends BaseSlashCommandInteraction {
|
|||||||
embedList.push(
|
embedList.push(
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.queue} Showing lyrics**\n**Track: [${geniusLyricsResult.title}](${geniusLyricsResult.url})**\n**Artist: [${geniusLyricsResult.artist.name}](${geniusLyricsResult.artist.url})**\n\n`
|
`**${this.embedOptions.icons.queue} Showing lyrics**\n` +
|
||||||
|
`**Track: [${geniusLyricsResult.title}](${geniusLyricsResult.url})**\n` +
|
||||||
|
`**Artist: [${geniusLyricsResult.artist.name}](${geniusLyricsResult.artist.url})**\n\n`
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.info)
|
.setColor(this.embedOptions.colors.info)
|
||||||
);
|
);
|
||||||
@@ -212,7 +215,10 @@ class LyricsCommand extends BaseSlashCommandInteraction {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.queue} Showing lyrics**\n**Track: [${geniusLyricsResult.title}](${geniusLyricsResult.url})**\n**Artist: [${geniusLyricsResult.artist.name}](${geniusLyricsResult.artist.url})**\n\n\`\`\`fix\n${geniusLyricsResult.lyrics}\`\`\``
|
`**${this.embedOptions.icons.queue} Showing lyrics**\n` +
|
||||||
|
`**Track: [${geniusLyricsResult.title}](${geniusLyricsResult.url})**\n` +
|
||||||
|
`**Artist: [${geniusLyricsResult.artist.name}](${geniusLyricsResult.artist.url})**\n\n` +
|
||||||
|
`\`\`\`fix\n${geniusLyricsResult.lyrics}\`\`\``
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.info)
|
.setColor(this.embedOptions.colors.info)
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -153,7 +153,10 @@ class NowPlayingCommand extends BaseSlashCommandInteraction {
|
|||||||
|
|
||||||
const loopModeUserString: string = this.getRepeatModeString(repeatMode);
|
const loopModeUserString: string = this.getRepeatModeString(repeatMode);
|
||||||
const icon = repeatMode === 3 ? this.embedOptions.icons.autoplay : this.embedOptions.icons.loop;
|
const icon = repeatMode === 3 ? this.embedOptions.icons.autoplay : this.embedOptions.icons.loop;
|
||||||
return `**${icon} Looping**\nLoop mode is set to **\`${loopModeUserString}\`**. You can change it with **\`/loop\`**.`;
|
return (
|
||||||
|
`**${icon} Looping**\n` +
|
||||||
|
`Loop mode is set to **\`${loopModeUserString}\`**. You can change it with **\`/loop\`**.`
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
private getDisplayTrackPlayingStatus = (queue: GuildQueue): string => {
|
private getDisplayTrackPlayingStatus = (queue: GuildQueue): string => {
|
||||||
|
|||||||
@@ -55,7 +55,9 @@ class RemoveCommand extends BaseSlashCommandInteraction {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.warning} Oops!**\nTrack **\`${removeTrackNumber}\`** is not a valid track number. There are a total of **\`${queue.tracks.data.length}\`** tracks in the queue.\n\nView tracks added to the queue with **\`/queue\`**.`
|
`**${this.embedOptions.icons.warning} Oops!**\n` +
|
||||||
|
`Track **\`${removeTrackNumber}\`** is not a valid track number. There are a total of **\`${queue.tracks.data.length}\`** tracks in the queue.` +
|
||||||
|
'\n\nView tracks added to the queue with **`/queue`**.'
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.warning)
|
.setColor(this.embedOptions.colors.warning)
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ class ShuffleCommand extends BaseSlashCommandInteraction {
|
|||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setAuthor(this.getEmbedUserAuthor(interaction))
|
.setAuthor(this.getEmbedUserAuthor(interaction))
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.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\`**.`
|
`**${this.embedOptions.icons.shuffled} Shuffled queue tracks**\n` +
|
||||||
|
`The **${queue.tracks.data.length}** tracks in the queue has been shuffled.\n\n` +
|
||||||
|
'View the new queue order with **`/queue`**.'
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.success)
|
.setColor(this.embedOptions.colors.success)
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -38,7 +38,9 @@ class StopCommand extends BaseSlashCommandInteraction {
|
|||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setAuthor(this.getEmbedUserAuthor(interaction))
|
.setAuthor(this.getEmbedUserAuthor(interaction))
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.success} Stopped playing**\nStopped playing audio and cleared the track queue.\n\nTo play more music, use the **\`/play\`** command!`
|
`**${this.embedOptions.icons.success} Stopped playing**\n` +
|
||||||
|
'Stopped playing audio and cleared the track queue.\n\n' +
|
||||||
|
'To play more music, use the **`/play`** command!'
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.success)
|
.setColor(this.embedOptions.colors.success)
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in new issue
Block a user