mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
add missing translations for /queue
This commit is contained in:
1 parent
01fbd5e60a
commit
b63d98ca7f
4 files changed
+441
-415
No files matched your search
+8
-3
@@ -72,8 +72,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"emptyHistory": "The history is empty, add some tracks with {{playCommand}}!",
|
"emptyHistory": "The history is empty, add some tracks with {{playCommand}}!",
|
||||||
"invalidPageNumber_one": "{{icon}} **Oops!**\nPage **{{page}}** is not a valid page number.\n\nThere is only **`1`** page in the history.",
|
"invalidPageNumber_one": "{{icon}} **Oops!**\nPage **`{{page}}`** is not a valid page number.\n\nThere is only **`1`** page in the history.",
|
||||||
"invalidPageNumber": "{{icon}} **Oops!**\nPage **{{page}}** is not a valid page number.\n\nThere are only a total of **`{{count}}`** pages in the history.",
|
"invalidPageNumber": "{{icon}} **Oops!**\nPage **`{{page}}`** is not a valid page number.\n\nThere are only a total of **`{{count}}`** pages in the history.",
|
||||||
"tracksInHistoryTitle": "{{icon}} **Tracks in history**"
|
"tracksInHistoryTitle": "{{icon}} **Tracks in history**"
|
||||||
},
|
},
|
||||||
"join": {
|
"join": {
|
||||||
@@ -203,7 +203,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tracksInQueueTitle": "{{icon}} **Tracks in queue**"
|
"tracksInQueueTitle": "{{icon}} **Tracks in queue**",
|
||||||
|
"emptyQueue": "The queue is empty, add some tracks with {{playCommand}}!",
|
||||||
|
"estimatedDuration": "Estimated duration: {{duration}}",
|
||||||
|
"estimatedReallyLongTime": "Estimated duration: A really long time",
|
||||||
|
"invalidPageNumber_one": "{{icon}} **Oops!**\nPage **`{{page}}`** is not a valid page number.\n\nThere is only **`1`** page in the queue.",
|
||||||
|
"invalidPageNumber": "{{icon}} **Oops!**\nPage **`{{page}}`** is not a valid page number.\n\nThere are only a total of **`{{count}}`** pages in the queue."
|
||||||
},
|
},
|
||||||
"reload": {
|
"reload": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|||||||
+8
-3
@@ -72,8 +72,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"emptyHistory": "Historikken er tom, legg til noen låter med {{playCommand}}!",
|
"emptyHistory": "Historikken er tom, legg til noen låter med {{playCommand}}!",
|
||||||
"invalidPageNumber_one": "{{icon}} **Oi sann!**\nSide **{{page}}** er ikke et gyldig sidenummer.\n\nDet er bare **`1`** side i historikken.",
|
"invalidPageNumber_one": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er bare **`1`** side i historikken.",
|
||||||
"invalidPageNumber": "{{icon}} **Oi sann!**\nSide **{{page}}** er ikke et gyldig sidenummer.\n\nDet er totalt bare **`{{count}}`** sider i historikken.",
|
"invalidPageNumber": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er totalt bare **`{{count}}`** sider i historikken.",
|
||||||
"tracksInHistoryTitle": "{{icon}} **Låter i historikken**"
|
"tracksInHistoryTitle": "{{icon}} **Låter i historikken**"
|
||||||
},
|
},
|
||||||
"join": {
|
"join": {
|
||||||
@@ -203,7 +203,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tracksInQueueTitle": "{{icon}} **Låter i køen**"
|
"tracksInQueueTitle": "{{icon}} **Låter i køen**",
|
||||||
|
"emptyQueue": "Køen er tom, legg til noen låter med {{playCommand}}!",
|
||||||
|
"estimatedDuration": "Estimert tid igjen: {{duration}}",
|
||||||
|
"estimatedReallyLongTime": "Estimert tid igjen: Veldig lang tid",
|
||||||
|
"invalidPageNumber_one": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er bare **`1`** side i køen.",
|
||||||
|
"invalidPageNumber": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er totalt bare **`{{count}}`** sider i køen."
|
||||||
},
|
},
|
||||||
"reload": {
|
"reload": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|||||||
Vendored
+402
-397
@@ -1,401 +1,406 @@
|
|||||||
interface Resources {
|
interface Resources {
|
||||||
"bot": {
|
bot: {
|
||||||
"autocomplete": {
|
autocomplete: {
|
||||||
"trackName": "{{title}} [Author: {{author}}]"
|
trackName: '{{title}} [Author: {{author}}]';
|
||||||
},
|
};
|
||||||
"commands": {
|
commands: {
|
||||||
"back": {
|
back: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "back",
|
name: 'back';
|
||||||
"description": "Go back to previous track or specified position in history.",
|
description: 'Go back to previous track or specified position in history.';
|
||||||
"options": {
|
options: {
|
||||||
"position": {
|
position: {
|
||||||
"name": "position",
|
name: 'position';
|
||||||
"description": "The position in history to go back to."
|
description: 'The position in history to go back to.';
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
},
|
};
|
||||||
"trackHistoryEmpty": "{{icon}} **Oops!**\nThe history is empty, add some tracks with {{playCommand}}!",
|
trackHistoryEmpty: '{{icon}} **Oops!**\nThe history is empty, add some tracks with {{playCommand}}!';
|
||||||
"trackPositionHigherThanHistoryLength_one": "{{icon}} **Oops!**\nThere is only **1** track in the history. You cannot go back to track **{{backPosition}}**.\n\nView tracks added in the history with {{historyCommand}}.",
|
trackPositionHigherThanHistoryLength_one: '{{icon}} **Oops!**\nThere is only **1** track in the history. You cannot go back to track **{{backPosition}}**.\n\nView tracks added in the history with {{historyCommand}}.';
|
||||||
"trackPositionHigherThanHistoryLength": "{{icon}} **Oops!**\nThere are only **{{count}}** tracks in the history. You cannot go back to track **{{backPosition}}**.\n\nView tracks added in the history with {{historyCommand}}.",
|
trackPositionHigherThanHistoryLength: '{{icon}} **Oops!**\nThere are only **{{count}}** tracks in the history. You cannot go back to track **{{backPosition}}**.\n\nView tracks added in the history with {{historyCommand}}.';
|
||||||
"trackRecovered": "{{icon}} **Recovered track**\n{{track}}"
|
trackRecovered: '{{icon}} **Recovered track**\n{{track}}';
|
||||||
},
|
};
|
||||||
"filters": {
|
filters: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "filters",
|
name: 'filters';
|
||||||
"description": "Toggle various audio filters.",
|
description: 'Toggle various audio filters.';
|
||||||
"options": {
|
options: {
|
||||||
"type": {
|
type: {
|
||||||
"name": "type",
|
name: 'type';
|
||||||
"description": "Audio filter type to use.",
|
description: 'Audio filter type to use.';
|
||||||
"choices": {
|
choices: {
|
||||||
"ffmpeg": "FFmpeg",
|
ffmpeg: 'FFmpeg';
|
||||||
"biquad": "Biquad",
|
biquad: 'Biquad';
|
||||||
"equalizer": "Equalizer",
|
equalizer: 'Equalizer';
|
||||||
"disable": "Disable"
|
disable: 'Disable';
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
},
|
};
|
||||||
"allFiltersDisabled": "{{icon}} **Disabled filters**\nAll audio filters have been disabled.",
|
allFiltersDisabled: '{{icon}} **Disabled filters**\nAll audio filters have been disabled.';
|
||||||
"disableAllFiltersButton": "Disable all filters",
|
disableAllFiltersButton: 'Disable all filters';
|
||||||
"nowUsingFilters": "{{icon}} **Filters toggled**\nNow using these {{mode}} filters:",
|
nowUsingFilters: '{{icon}} **Filters toggled**\nNow using these {{mode}} filters:';
|
||||||
"selectFilterPlaceholder": "Select a filter from the menu.",
|
selectFilterPlaceholder: 'Select a filter from the menu.';
|
||||||
"selectFilterPlaceholderMany": "Select one or multiple filters.",
|
selectFilterPlaceholderMany: 'Select one or multiple filters.';
|
||||||
"toggleFilterInstructions": "**Toggle filters ({{provider}})**\nEnable or disable audio filters for playback from the menu."
|
toggleFilterInstructions: '**Toggle filters ({{provider}})**\nEnable or disable audio filters for playback from the menu.';
|
||||||
},
|
};
|
||||||
"guilds": {
|
guilds: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "guilds",
|
name: 'guilds';
|
||||||
"description": "Show the top 25 guilds by member count."
|
description: 'Show the top 25 guilds by member count.';
|
||||||
},
|
};
|
||||||
"topGuildsByMemberCount": "{{icon}} **Top {{count}} guilds by member count ({{totalCount}} total)**",
|
topGuildsByMemberCount: '{{icon}} **Top {{count}} guilds by member count ({{totalCount}} total)**';
|
||||||
"totalMembers": "**Total members:** **`{{count}`**"
|
totalMembers: '**Total members:** **`{{count}`**';
|
||||||
},
|
};
|
||||||
"help": {
|
help: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "help",
|
name: 'help';
|
||||||
"description": "Show the list of bot commands."
|
description: 'Show the list of bot commands.';
|
||||||
},
|
};
|
||||||
"addBotButton": "Add bot",
|
addBotButton: 'Add bot';
|
||||||
"listTitle": "{{icon}} **List of commands**",
|
listTitle: '{{icon}} **List of commands**';
|
||||||
"supportServerButton": "Support server"
|
supportServerButton: 'Support server';
|
||||||
},
|
};
|
||||||
"history": {
|
history: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "history",
|
name: 'history';
|
||||||
"description": "Show history of tracks that have been played.",
|
description: 'Show history of tracks that have been played.';
|
||||||
"options": {
|
options: {
|
||||||
"page": {
|
page: {
|
||||||
"name": "page",
|
name: 'page';
|
||||||
"description": "Page number to display for the history."
|
description: 'Page number to display for the history.';
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
},
|
};
|
||||||
"emptyHistory": "The history is empty, add some tracks with {{playCommand}}!",
|
emptyHistory: 'The history is empty, add some tracks with {{playCommand}}!';
|
||||||
"invalidPageNumber_one": "{{icon}} **Oops!**\nPage **{{page}}** is not a valid page number.\n\nThere is only **`1`** page in the history.",
|
invalidPageNumber_one: '{{icon}} **Oops!**\nPage **`{{page}}`** is not a valid page number.\n\nThere is only **`1`** page in the history.';
|
||||||
"invalidPageNumber": "{{icon}} **Oops!**\nPage **{{page}}** is not a valid page number.\n\nThere are only a total of **`{{count}}`** pages in the history.",
|
invalidPageNumber: '{{icon}} **Oops!**\nPage **`{{page}}`** is not a valid page number.\n\nThere are only a total of **`{{count}}`** pages in the history.';
|
||||||
"tracksInHistoryTitle": "{{icon}} **Tracks in history**"
|
tracksInHistoryTitle: '{{icon}} **Tracks in history**';
|
||||||
},
|
};
|
||||||
"join": {
|
join: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "join",
|
name: 'join';
|
||||||
"description": "The bot will join the voice channel if not already in one."
|
description: 'The bot will join the voice channel if not already in one.';
|
||||||
},
|
};
|
||||||
"alreadyConnected": "{{icon}} **Oops!**\nI am already connected to the {{channel}} voice channel.\n\nTo disconnect me from the channel, use the {{leaveCommand}} command.",
|
alreadyConnected: '{{icon}} **Oops!**\nI am already connected to the {{channel}} voice channel.\n\nTo disconnect me from the channel, use the {{leaveCommand}} command.';
|
||||||
"couldNotJoin": "{{icon}} **Oops!**\nCould not join voice channel, please try again.",
|
couldNotJoin: '{{icon}} **Oops!**\nCould not join voice channel, please try again.';
|
||||||
"joinedChannel": "{{icon}} **Joined channel**\nConnected to voice channel: {{channel}}\n\nTo add tracks, use the {{playCommand}} command!"
|
joinedChannel: '{{icon}} **Joined channel**\nConnected to voice channel: {{channel}}\n\nTo add tracks, use the {{playCommand}} command!';
|
||||||
},
|
};
|
||||||
"leave": {
|
leave: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "leave",
|
name: 'leave';
|
||||||
"description": "Clear the queue and remove bot from voice channel."
|
description: 'Clear the queue and remove bot from voice channel.';
|
||||||
},
|
};
|
||||||
"leavingChannel": "{{icon}} **Leaving channel**\nCleared the track queue and left voice channel.\n\nTo play more music, use the {{playCommand}} command!"
|
leavingChannel: '{{icon}} **Leaving channel**\nCleared the track queue and left voice channel.\n\nTo play more music, use the {{playCommand}} command!';
|
||||||
},
|
};
|
||||||
"loop": {
|
loop: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "loop",
|
name: 'loop';
|
||||||
"description": "Toggle looping a track, the whole queue or autoplay.",
|
description: 'Toggle looping a track, the whole queue or autoplay.';
|
||||||
"options": {
|
options: {
|
||||||
"mode": {
|
mode: {
|
||||||
"name": "mode",
|
name: 'mode';
|
||||||
"description": "Loop mode: Track, queue, autoplay or disabled.",
|
description: 'Loop mode: Track, queue, autoplay or disabled.';
|
||||||
"choices": {
|
choices: {
|
||||||
"0": "Off",
|
'0': 'Off';
|
||||||
"1": "Track",
|
'1': 'Track';
|
||||||
"2": "Queue",
|
'2': 'Queue';
|
||||||
"3": "Autoplay"
|
'3': 'Autoplay';
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
},
|
};
|
||||||
"alreadySet": "{{icon}} **Oops!**\nLoop mode is already **`{{mode}}`**.",
|
alreadySet: '{{icon}} **Oops!**\nLoop mode is already **`{{mode}}`**.';
|
||||||
"loopModeInformation": "{{icon}} **Current loop mode**\nThe looping mode is currently set to **`{{mode}}`**.",
|
loopModeInformation: '{{icon}} **Current loop mode**\nThe looping mode is currently set to **`{{mode}}`**.';
|
||||||
"modeChanged": "{{icon}} **Loop mode changed**\nChanging loop mode from **`{{fromName}}`** to **`{{toName}}`**.",
|
modeChanged: '{{icon}} **Loop mode changed**\nChanging loop mode from **`{{fromName}}`** to **`{{toName}}`**.';
|
||||||
"willAutoplay": "When the queue is empty, similar tracks will start playing!",
|
willAutoplay: 'When the queue is empty, similar tracks will start playing!';
|
||||||
"willNoLongerPlay": "The {{mode}} will no longer play on repeat!",
|
willNoLongerPlay: 'The {{mode}} will no longer play on repeat!';
|
||||||
"willNowPlay": "The {{mode}} will now play on repeat!"
|
willNowPlay: 'The {{mode}} will now play on repeat!';
|
||||||
},
|
};
|
||||||
"lyrics": {
|
lyrics: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "lyrics",
|
name: 'lyrics';
|
||||||
"description": "Search Genius lyrics for current or specified track.",
|
description: 'Search Genius lyrics for current or specified track.';
|
||||||
"options": {
|
options: {
|
||||||
"query": {
|
query: {
|
||||||
"name": "query",
|
name: 'query';
|
||||||
"description": "Search query by text or URL."
|
description: 'Search query by text or URL.';
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
},
|
};
|
||||||
"autocompleteSearchResult": "{{title}} [Artist: {{artist}}]",
|
autocompleteSearchResult: '{{title}} [Artist: {{artist}}]';
|
||||||
"lyricsEmbed": "{{icon}} **Showing lyrics**\n**Track: [{{trackTitle}}]({{trackUrl}})**\n**Artist: [{{artistName}}]({{artistUrl}})**",
|
lyricsEmbed: '{{icon}} **Showing lyrics**\n**Track: [{{trackTitle}}]({{trackUrl}})**\n**Artist: [{{artistName}}]({{artistUrl}})**';
|
||||||
"noLyricsFound": "{{icon}} **No lyrics found**\nThere were no Genius lyrics found for track **{{query}}**."
|
noLyricsFound: '{{icon}} **No lyrics found**\nThere were no Genius lyrics found for track **{{query}}**.';
|
||||||
},
|
};
|
||||||
"move": {
|
move: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "move",
|
name: 'move';
|
||||||
"description": "Move a track to a specified position in queue.",
|
description: 'Move a track to a specified position in queue.';
|
||||||
"options": {
|
options: {
|
||||||
"from": {
|
from: {
|
||||||
"name": "from",
|
name: 'from';
|
||||||
"description": "The position of the track to move."
|
description: 'The position of the track to move.';
|
||||||
},
|
};
|
||||||
"to": {
|
to: {
|
||||||
"name": "to",
|
name: 'to';
|
||||||
"description": "The position to move the track to."
|
description: 'The position to move the track to.';
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
},
|
};
|
||||||
"trackMoved": "{{icon}} **Moved track**\n{track}\n\nTrack has been moved from position **`{{fromPosition}}`** to position **`{{toPosition}}`**.",
|
trackMoved: '{{icon}} **Moved track**\n{track}\n\nTrack has been moved from position **`{{fromPosition}}`** to position **`{{toPosition}}`**.';
|
||||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Oops!**\nYou cannot move the track in position **`{{fromPosition}}`** to position **`{{toPosition}}`**. There is only **`1`** track in the queue.\n\nView tracks added to the queue with {{queueCommand}}.",
|
trackPositionHigherThanQueueLength_one: '{{icon}} **Oops!**\nYou cannot move the track in position **`{{fromPosition}}`** to position **`{{toPosition}}`**. There is only **`1`** track in the queue.\n\nView tracks added to the queue with {{queueCommand}}.';
|
||||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oops!**\nYou cannot move the track in position **`{{fromPosition}}`** to position **`{{toPosition}}`**. There are only **`{{count}}`** tracks in the queue.\n\nView tracks added to the queue with {{queueCommand}}."
|
trackPositionHigherThanQueueLength: '{{icon}} **Oops!**\nYou cannot move the track in position **`{{fromPosition}}`** to position **`{{toPosition}}`**. There are only **`{{count}}`** tracks in the queue.\n\nView tracks added to the queue with {{queueCommand}}.';
|
||||||
},
|
};
|
||||||
"nowplaying": {
|
nowplaying: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "nowplaying",
|
name: 'nowplaying';
|
||||||
"description": "Show information about the current track."
|
description: 'Show information about the current track.';
|
||||||
},
|
};
|
||||||
"embedFields": {
|
embedFields: {
|
||||||
"author": "**Artist**",
|
author: '**Artist**';
|
||||||
"plays": "**Plays**",
|
plays: '**Plays**';
|
||||||
"source": "**Track source**"
|
source: '**Track source**';
|
||||||
},
|
};
|
||||||
"otherTracksInQueue_one": "1 other track in the queue...",
|
otherTracksInQueue_one: '1 other track in the queue...';
|
||||||
"otherTracksInQueue": "{{count}} other tracks in the queue...",
|
otherTracksInQueue: '{{count}} other tracks in the queue...';
|
||||||
"playCount_zero": "Unknown",
|
playCount_zero: 'Unknown';
|
||||||
"playCount": "{{count, number}}"
|
playCount: '{{count, number}}';
|
||||||
},
|
};
|
||||||
"pause": {
|
pause: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "pause",
|
name: 'pause';
|
||||||
"description": "Toggle pause for the current track."
|
description: 'Toggle pause for the current track.';
|
||||||
},
|
};
|
||||||
"pauseConfirmation": "{{icon}} **Paused track**",
|
pauseConfirmation: '{{icon}} **Paused track**';
|
||||||
"resumeConfirmation": "{{icon}} **Resumed track**",
|
resumeConfirmation: '{{icon}} **Resumed track**';
|
||||||
"directSource": "Direct source"
|
directSource: 'Direct source';
|
||||||
},
|
};
|
||||||
"play": {
|
play: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "play",
|
name: 'play';
|
||||||
"description": "Add a track or playlist to the queue by search query or URL.",
|
description: 'Add a track or playlist to the queue by search query or URL.';
|
||||||
"options": {
|
options: {
|
||||||
"query": {
|
query: {
|
||||||
"name": "query",
|
name: 'query';
|
||||||
"description": "Search query by text or URL."
|
description: 'Search query by text or URL.';
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
},
|
};
|
||||||
"addedToQueueTitle": "{{icon}} **Added to queue**",
|
addedToQueueTitle: '{{icon}} **Added to queue**';
|
||||||
"playlistAddedTitle": "{{icon}} **Added playlist to queue**",
|
playlistAddedTitle: '{{icon}} **Added playlist to queue**';
|
||||||
"playlistAddedTrackCount_one": "And **1** more track... Use {{queueCommand}} to view all.",
|
playlistAddedTrackCount_one: 'And **1** more track... Use {{queueCommand}} to view all.';
|
||||||
"playlistAddedTrackCount": "And **{{count}}** more tracks... Use {{queueCommand}} to view all.",
|
playlistAddedTrackCount: 'And **{{count}}** more tracks... Use {{queueCommand}} to view all.';
|
||||||
"playlistTooLarge": "{{icon}} **Playlist too large**\nThis playlist is too large to be added to the queue.\n\nThe maximum amount of tracks that can be added to the queue is **{{count}}**.",
|
playlistTooLarge: '{{icon}} **Playlist too large**\nThis playlist is too large to be added to the queue.\n\nThe maximum amount of tracks that can be added to the queue is **{{count}}**.';
|
||||||
"trackNotFound": "{{icon}} **No track found\nNo results found for **{{query}}**.\n\nIf you specified a URL, please make sure it is valid and public."
|
trackNotFound: '{{icon}} **No track found\nNo results found for **{{query}}**.\n\nIf you specified a URL, please make sure it is valid and public.';
|
||||||
},
|
};
|
||||||
"queue": {
|
queue: {
|
||||||
"metadata": {
|
metadata: {
|
||||||
"name": "queue",
|
name: 'queue';
|
||||||
"description": "Show tracks that have been added to the queue.",
|
description: 'Show tracks that have been added to the queue.';
|
||||||
"options": {
|
options: {
|
||||||
"page": {
|
page: {
|
||||||
"name": "page",
|
name: 'page';
|
||||||
"description": "Page number to display for the queue."
|
description: 'Page number to display for the queue.';
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
},
|
};
|
||||||
"tracksInQueueTitle": "{{icon}} **Tracks in queue**"
|
tracksInQueueTitle: '{{icon}} **Tracks in queue**';
|
||||||
},
|
emptyQueue: 'The queue is empty, add some tracks with {{playCommand}}!';
|
||||||
"reload": {
|
estimatedDuration: 'Estimated duration: {{duration}}';
|
||||||
"metadata": {
|
estimatedReallyLongTime: 'Estimated duration: A really long time';
|
||||||
"name": "reload",
|
invalidPageNumber_one: '{{icon}} **Oops!**\nPage **`{{page}}`** is not a valid page number.\n\nThere is only **`1`** page in the queue.';
|
||||||
"description": "Reload slash command, autocomplete and component interactions across shards."
|
invalidPageNumber: '{{icon}} **Oops!**\nPage **`{{page}}`** is not a valid page number.\n\nThere are only a total of **`{{count}}`** pages in the queue.';
|
||||||
},
|
};
|
||||||
"reloadedCommands": "{{icon}} **Reloaded commands**",
|
reload: {
|
||||||
"unableToReload": "{{icon}} **Oops!**\n_Hmm..._ It seems I am unable to reload the interaction module across shards."
|
metadata: {
|
||||||
},
|
name: 'reload';
|
||||||
"remove": {
|
description: 'Reload slash command, autocomplete and component interactions across shards.';
|
||||||
"noTracksRemoved": "{{icon}} **No tracks removed**\nThere were no tracks removed from the queue. Please check if the option you selected has tracks to remove.",
|
};
|
||||||
"removedTrack": "{{icon}} **Removed track**",
|
reloadedCommands: '{{icon}} **Reloaded commands**';
|
||||||
"removedTracks": "{{icon}} **Removed tracks**\n**`{{count}}`** tracks were removed from the queue.",
|
unableToReload: '{{icon}} **Oops!**\n_Hmm..._ It seems I am unable to reload the interaction module across shards.';
|
||||||
"startPositionHigherThanEndPosition": "{{icon}} **Oops!**\nStart position **`{{start}}`** is higher than end position **`{{end}}`**. Please specify a valid range.\n\nView tracks added to the queue with {{queueCommand}}.",
|
};
|
||||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Oops!**\nPosition **`{{position}}`** is not a valid track position. There is only a total of **`1`** track in the queue.\n\nView the tracks added to the queue with {{queueCommand}}.",
|
remove: {
|
||||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oops!**\nPosition **`{{position}}`** is not a valid track position. There are only a total of **`{{count}}`** tracks in the queue.\n\nView the tracks added to the queue with {{queueCommand}}."
|
noTracksRemoved: '{{icon}} **No tracks removed**\nThere were no tracks removed from the queue. Please check if the option you selected has tracks to remove.';
|
||||||
},
|
removedTrack: '{{icon}} **Removed track**';
|
||||||
"seek": {
|
removedTracks: '{{icon}} **Removed tracks**\n**`{{count}}`** tracks were removed from the queue.';
|
||||||
"metadata": {
|
startPositionHigherThanEndPosition: '{{icon}} **Oops!**\nStart position **`{{start}}`** is higher than end position **`{{end}}`**. Please specify a valid range.\n\nView tracks added to the queue with {{queueCommand}}.';
|
||||||
"name": "seek",
|
trackPositionHigherThanQueueLength_one: '{{icon}} **Oops!**\nPosition **`{{position}}`** is not a valid track position. There is only a total of **`1`** track in the queue.\n\nView the tracks added to the queue with {{queueCommand}}.';
|
||||||
"description": "Seek to a position in the current track.",
|
trackPositionHigherThanQueueLength: '{{icon}} **Oops!**\nPosition **`{{position}}`** is not a valid track position. There are only a total of **`{{count}}`** tracks in the queue.\n\nView the tracks added to the queue with {{queueCommand}}.';
|
||||||
"options": {
|
};
|
||||||
"duration": {
|
seek: {
|
||||||
"name": "duration",
|
metadata: {
|
||||||
"description": "Timestamp in format 00:00:00 (HH:mm:ss)."
|
name: 'seek';
|
||||||
}
|
description: 'Seek to a position in the current track.';
|
||||||
}
|
options: {
|
||||||
},
|
duration: {
|
||||||
"correctFormatInstruction": "{{icon}} **Oops!**\nYou entered an invalid duration format, **`{{wrongDuration}}`**.\nPlease use the format **`HH:mm:ss`**, **`mm:ss`** or **`ss`**.\n\n**Examples:**\n- **`/seek`** **`1:24:12`** - Seek to 1 hour, 24 minutes and 12 seconds.\n- **`/seek`** **`3:27`** - Seek to 3 minutes and 27 seconds.\n- **`/seek`** **`42`** - Seek to 42 seconds.",
|
name: 'duration';
|
||||||
"durationLongerThanTrackDuration": "{{icon}} **Oops!**\nYou entered **`{{wrongDuration}}`**, which is a timestamp longer than the duration of the current track.\n\nPlease try a timestamp that is less than the duration of the track (**{{trackDuration}}**).",
|
description: 'Timestamp in format 00:00:00 (HH:mm:ss).';
|
||||||
"seekingToTimestamp": "{{icon}} **Seeking to timestamp**\nSeeking to **`{{duration}}`** in current track."
|
};
|
||||||
},
|
};
|
||||||
"shards": {
|
};
|
||||||
"metadata": {
|
correctFormatInstruction: '{{icon}} **Oops!**\nYou entered an invalid duration format, **`{{wrongDuration}}`**.\nPlease use the format **`HH:mm:ss`**, **`mm:ss`** or **`ss`**.\n\n**Examples:**\n- **`/seek`** **`1:24:12`** - Seek to 1 hour, 24 minutes and 12 seconds.\n- **`/seek`** **`3:27`** - Seek to 3 minutes and 27 seconds.\n- **`/seek`** **`42`** - Seek to 42 seconds.';
|
||||||
"name": "shards",
|
durationLongerThanTrackDuration: '{{icon}} **Oops!**\nYou entered **`{{wrongDuration}}`**, which is a timestamp longer than the duration of the current track.\n\nPlease try a timestamp that is less than the duration of the track (**{{trackDuration}}**).';
|
||||||
"description": "Show information about all connected shards.",
|
seekingToTimestamp: '{{icon}} **Seeking to timestamp**\nSeeking to **`{{duration}}`** in current track.';
|
||||||
"options": {
|
};
|
||||||
"sort": {
|
shards: {
|
||||||
"name": "sort",
|
metadata: {
|
||||||
"description": "What to sort the shards by.",
|
name: 'shards';
|
||||||
"choices": {
|
description: 'Show information about all connected shards.';
|
||||||
"none": "None (Shard ID)",
|
options: {
|
||||||
"memory": "Memory usage",
|
sort: {
|
||||||
"connections": "Voice Connections",
|
name: 'sort';
|
||||||
"tracks": "Tracks",
|
description: 'What to sort the shards by.';
|
||||||
"listeners": "Listeners",
|
choices: {
|
||||||
"guilds": "Guilds",
|
none: 'None (Shard ID)';
|
||||||
"members": "Members"
|
memory: 'Memory usage';
|
||||||
}
|
connections: 'Voice Connections';
|
||||||
},
|
tracks: 'Tracks';
|
||||||
"page": {
|
listeners: 'Listeners';
|
||||||
"name": "page",
|
guilds: 'Guilds';
|
||||||
"description": "Page number to display for the shards."
|
members: 'Members';
|
||||||
}
|
};
|
||||||
}
|
};
|
||||||
}
|
page: {
|
||||||
},
|
name: 'page';
|
||||||
"shuffle": {
|
description: 'Page number to display for the shards.';
|
||||||
"metadata": {
|
};
|
||||||
"name": "shuffle",
|
};
|
||||||
"description": "Randomly shuffle all tracks in the queue."
|
};
|
||||||
},
|
};
|
||||||
"shuffledTracks": "{{icon}} **Shuffled queue tracks**\nThe **{{count}}** tracks in the queue have been shuffled.\n\nView the new queue order with {{queueCommand}}."
|
shuffle: {
|
||||||
},
|
metadata: {
|
||||||
"skip": {
|
name: 'shuffle';
|
||||||
"metadata": {
|
description: 'Randomly shuffle all tracks in the queue.';
|
||||||
"name": "skip",
|
};
|
||||||
"description": "Skip track to next or specified position in queue.",
|
shuffledTracks: '{{icon}} **Shuffled queue tracks**\nThe **{{count}}** tracks in the queue have been shuffled.\n\nView the new queue order with {{queueCommand}}.';
|
||||||
"options": {
|
};
|
||||||
"position": {
|
skip: {
|
||||||
"name": "position",
|
metadata: {
|
||||||
"description": "The position in queue to skip to."
|
name: 'skip';
|
||||||
}
|
description: 'Skip track to next or specified position in queue.';
|
||||||
}
|
options: {
|
||||||
},
|
position: {
|
||||||
"emptyQueue": "{{icon}} **Oops!**\nThe queue is empty, add some tracks with {{playCommand}}!",
|
name: 'position';
|
||||||
"skippedTrack": "{{icon}} **Skipped track**",
|
description: 'The position in queue to skip to.';
|
||||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Oops!**\nThere is only **1** track in the queue. You cannot skip to track **{{position}}**.\n\nView tracks added to the queue with {{queueCommand}}.",
|
};
|
||||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oops!**\nThere are only **{{count}}** tracks in the queue. You cannot skip to track **{{position}}**.\n\nView tracks added to the queue with {{queueCommand}}."
|
};
|
||||||
},
|
};
|
||||||
"status": {
|
emptyQueue: '{{icon}} **Oops!**\nThe queue is empty, add some tracks with {{playCommand}}!';
|
||||||
"metadata": {
|
skippedTrack: '{{icon}} **Skipped track**';
|
||||||
"name": "status",
|
trackPositionHigherThanQueueLength_one: '{{icon}} **Oops!**\nThere is only **1** track in the queue. You cannot skip to track **{{position}}**.\n\nView tracks added to the queue with {{queueCommand}}.';
|
||||||
"description": "Show operational status of the bot."
|
trackPositionHigherThanQueueLength: '{{icon}} **Oops!**\nThere are only **{{count}}** tracks in the queue. You cannot skip to track **{{position}}**.\n\nView tracks added to the queue with {{queueCommand}}.';
|
||||||
}
|
};
|
||||||
},
|
status: {
|
||||||
"stop": {
|
metadata: {
|
||||||
"metadata": {
|
name: 'status';
|
||||||
"name": "stop",
|
description: 'Show operational status of the bot.';
|
||||||
"description": "Clear the queue and stop playing audio."
|
};
|
||||||
},
|
};
|
||||||
"stoppedPlaying": "{{icon}} **Stopped playing**\nStopped playing the audio and cleared the track queue.\n\nTo play more music, use the {{playCommand}} command!"
|
stop: {
|
||||||
},
|
metadata: {
|
||||||
"systemstatus": {
|
name: 'stop';
|
||||||
"metadata": {
|
description: 'Clear the queue and stop playing audio.';
|
||||||
"name": "systemstatus",
|
};
|
||||||
"description": "Show operational status of the bot with additional technical information."
|
stoppedPlaying: '{{icon}} **Stopped playing**\nStopped playing the audio and cleared the track queue.\n\nTo play more music, use the {{playCommand}} command!';
|
||||||
}
|
};
|
||||||
},
|
systemstatus: {
|
||||||
"volume": {
|
metadata: {
|
||||||
"metadata": {
|
name: 'systemstatus';
|
||||||
"name": "volume",
|
description: 'Show operational status of the bot with additional technical information.';
|
||||||
"description": "Show or change the playback volume for tracks.",
|
};
|
||||||
"options": {
|
};
|
||||||
"percentage": {
|
volume: {
|
||||||
"name": "percentage",
|
metadata: {
|
||||||
"description": "Volume percentage: From 1% to 100%."
|
name: 'volume';
|
||||||
}
|
description: 'Show or change the playback volume for tracks.';
|
||||||
}
|
options: {
|
||||||
},
|
percentage: {
|
||||||
"invalidVolumeRange": "{{icon}} **Oops!**\nYou cannot set the volume to **`{{wrongVolume}}%`**, please pick a value between **`1%`** and **`100%`**.",
|
name: 'percentage';
|
||||||
"volumeChanged": "{{icon}} **Volume changed**\nPlayback volume has been changed to **`{{volume}}%`**.",
|
description: 'Volume percentage: From 1% to 100%.';
|
||||||
"volumeInformation": "{{icon}} **Playback volume**\nThe playback volume is currently set to **`{{volume}}`**.",
|
};
|
||||||
"volumeMuted": "{{icon}} **Audio muted**\nPlayback audio has been muted, because the volume was set to **`0%`**."
|
};
|
||||||
}
|
};
|
||||||
},
|
invalidVolumeRange: '{{icon}} **Oops!**\nYou cannot set the volume to **`{{wrongVolume}}%`**, please pick a value between **`1%`** and **`100%`**.';
|
||||||
"musicPlayerCommon": {
|
volumeChanged: '{{icon}} **Volume changed**\nPlayback volume has been changed to **`{{volume}}%`**.';
|
||||||
"controls": {
|
volumeInformation: '{{icon}} **Playback volume**\nThe playback volume is currently set to **`{{volume}}`**.';
|
||||||
"stop": "Stop",
|
volumeMuted: '{{icon}} **Audio muted**\nPlayback audio has been muted, because the volume was set to **`0%`**.';
|
||||||
"previous": "Previous",
|
};
|
||||||
"pause": "Pause",
|
};
|
||||||
"resume": "Resume",
|
musicPlayerCommon: {
|
||||||
"skip": "Skip"
|
controls: {
|
||||||
},
|
stop: 'Stop';
|
||||||
"footerPageNumber_one": "Page {{page}} of {{pageCount}} (1 track)",
|
previous: 'Previous';
|
||||||
"footerPageNumber": "Page {{page}} of {{pageCount}} ({{count}} tracks)",
|
pause: 'Pause';
|
||||||
"loopingInfo": "{{icon}} **Looping**\nLoop mode is set to **`{{loopMode}}`**. You can change it with {{loopCommand}}.",
|
resume: 'Resume';
|
||||||
"nowPausedTitle": "{{icon}} **Currently paused**",
|
skip: 'Skip';
|
||||||
"nowPlayingTitle": "{{icon}} **Now playing**",
|
};
|
||||||
"playingLive": "{{icon}} **`LIVE`** - Playing continuously from live source.",
|
footerPageNumber_one: 'Page {{page}} of {{pageCount}} (1 track)';
|
||||||
"queueRepeatMode": {
|
footerPageNumber: 'Page {{page}} of {{pageCount}} ({{count}} tracks)';
|
||||||
"off": "Disabled",
|
loopingInfo: '{{icon}} **Looping**\nLoop mode is set to **`{{loopMode}}`**. You can change it with {{loopCommand}}.';
|
||||||
"track": "Track",
|
nowPausedTitle: '{{icon}} **Currently paused**';
|
||||||
"queue": "Queue",
|
nowPlayingTitle: '{{icon}} **Now playing**';
|
||||||
"autoplay": "Autoplay"
|
playingLive: '{{icon}} **`LIVE`** - Playing continuously from live source.';
|
||||||
},
|
queueRepeatMode: {
|
||||||
"requestedBy": "**Requested by:** {{user}}",
|
off: 'Disabled';
|
||||||
"unavailableAuthor": "Unavailable",
|
track: 'Track';
|
||||||
"unavailableDuration": "_No duration available._",
|
queue: 'Queue';
|
||||||
"unavailableRequestedBy": "Unavailable",
|
autoplay: 'Autoplay';
|
||||||
"unavailableTrackTitle": "Title unavailable",
|
};
|
||||||
"unavailableTrackUrl": "**Unavailable**",
|
requestedBy: '**Requested by:** {{user}}';
|
||||||
"unavailableSource": "Unavailable",
|
unavailableAuthor: 'Unavailable';
|
||||||
"voiceChannelInfo": "Channel: {{channel}} ({{bitrate}}kbps)"
|
unavailableDuration: '_No duration available._';
|
||||||
},
|
unavailableRequestedBy: 'Unavailable';
|
||||||
"statistics": {
|
unavailableTrackTitle: 'Title unavailable';
|
||||||
"botStatus": {
|
unavailableTrackUrl: '**Unavailable**';
|
||||||
"title": "{{icon}} **Bot status**",
|
unavailableSource: 'Unavailable';
|
||||||
"joinedServers": "**{{count}}** Joined servers",
|
voiceChannelInfo: 'Channel: {{channel}} ({{bitrate}}kbps)';
|
||||||
"joinedServers_one": "**1** Joined server",
|
};
|
||||||
"totalMembers": "**{{count}}** Total members",
|
statistics: {
|
||||||
"releaseVersion": "**{{version}}** Release version"
|
botStatus: {
|
||||||
},
|
title: '{{icon}} **Bot status**';
|
||||||
"queueStatus": {
|
joinedServers: '**{{count}}** Joined servers';
|
||||||
"title": "{{icon}} **Queue status**",
|
joinedServers_one: '**1** Joined server';
|
||||||
"voiceConnections": "**{{count}}** Voice connections",
|
totalMembers: '**{{count}}** Total members';
|
||||||
"voiceConnections_one": "**1** Voice connection",
|
releaseVersion: '**{{version}}** Release version';
|
||||||
"tracksInQueues": "**{{count}}** Tracks in queues",
|
};
|
||||||
"tracksInQueues_one": "**1** Track in queues",
|
queueStatus: {
|
||||||
"usersListening": "**{{count}}** Users listening",
|
title: '{{icon}} **Queue status**';
|
||||||
"usersListening_one": "**1** User listening"
|
voiceConnections: '**{{count}}** Voice connections';
|
||||||
},
|
voiceConnections_one: '**1** Voice connection';
|
||||||
"systemStatus": {
|
tracksInQueues: '**{{count}}** Tracks in queues';
|
||||||
"title": "{{icon}} **System status**",
|
tracksInQueues_one: '**1** Track in queues';
|
||||||
"uptime": "**{{value}}** Uptime",
|
usersListening: '**{{count}}** Users listening';
|
||||||
"cpu": "**{{value, number(minimumFractionDigits: 2)}}%** CPU usage",
|
usersListening_one: '**1** User listening';
|
||||||
"cpuDetailed": "**{{usage}}% @ {{cores}} cores** CPU usage",
|
};
|
||||||
"memory": "**{{value, number}} MB** Memory usage",
|
systemStatus: {
|
||||||
"memoryDetailed": "**{{used, number}} / {{total, number}} MB** Memory usage",
|
title: '{{icon}} **System status**';
|
||||||
"platform": "**{{value}}** Platform"
|
uptime: '**{{value}}** Uptime';
|
||||||
},
|
cpu: '**{{value, number(minimumFractionDigits: 2)}}%** CPU usage';
|
||||||
"discordStatus": {
|
cpuDetailed: '**{{usage}}% @ {{cores}} cores** CPU usage';
|
||||||
"title": "{{icon}} **Discord status**",
|
memory: '**{{value, number}} MB** Memory usage';
|
||||||
"apiLatency": "**{{value, number}} ms** Discord API latency"
|
memoryDetailed: '**{{used, number}} / {{total, number}} MB** Memory usage';
|
||||||
},
|
platform: '**{{value}}** Platform';
|
||||||
"dependencies": {
|
};
|
||||||
"title": "{{icon}} **Dependencies**"
|
discordStatus: {
|
||||||
}
|
title: '{{icon}} **Discord status**';
|
||||||
},
|
apiLatency: '**{{value, number}} ms** Discord API latency';
|
||||||
"validation": {
|
};
|
||||||
"cannotJoinVoiceOrTalk": "{{icon}} **Oops!**\nI do not have permission to play audio in the voice channel {{channel}}.\n\nPlease make sure I have the **`Connect`** and **`Speak`** permissions in this voice channel.",
|
dependencies: {
|
||||||
"cannotSendMessageInChannel": "{{icon}} **Oops!**\nI do not have permission to send message replies in the channel {{channel}}.\n\nPlease make sure I have the **`View Channel`** permission in this text channel.",
|
title: '{{icon}} **Dependencies**';
|
||||||
"historyDoesNotExist": "{{icon}} **Oops!**\nThere are no tracks in the history and nothing currently playing. First add some tracks with {{playCommand}}!",
|
};
|
||||||
"notInSameVoiceChannel": "{{icon}} **Not in same voice channel**\nYou need to be in the same voice channel as me to perform this action.\n\n**Voice channel:** {{channel}}",
|
};
|
||||||
"notInVoiceChannel": "{{icon}} **Not in a voice channel**\nYou need to be in a voice channel to perform this action.",
|
validation: {
|
||||||
"notValidGuildId": "{{icon}} **Oops!**\nNo permission to perform this action.\n\nThe command {{command}} cannot be executed in this server.",
|
cannotJoinVoiceOrTalk: '{{icon}} **Oops!**\nI do not have permission to play audio in the voice channel {{channel}}.\n\nPlease make sure I have the **`Connect`** and **`Speak`** permissions in this voice channel.';
|
||||||
"queueDoesNotExist": "{{icon}} **Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some tracks with {{playCommand}}!",
|
cannotSendMessageInChannel: '{{icon}} **Oops!**\nI do not have permission to send message replies in the channel {{channel}}.\n\nPlease make sure I have the **`View Channel`** permission in this text channel.';
|
||||||
"queueIsEmpty": "{{icon}} **Oops!\nThere are no tracks added to the queue. First add some tracks with {{playCommand}}!",
|
historyDoesNotExist: '{{icon}} **Oops!**\nThere are no tracks in the history and nothing currently playing. First add some tracks with {{playCommand}}!';
|
||||||
"queueNoCurrentTrack": "{{icon}} **Oops!**\nThere is nothing currently playing. First add some tracks with {{playCommand}}!"
|
notInSameVoiceChannel: '{{icon}} **Not in same voice channel**\nYou need to be in the same voice channel as me to perform this action.\n\n**Voice channel:** {{channel}}';
|
||||||
}
|
notInVoiceChannel: '{{icon}} **Not in a voice channel**\nYou need to be in a voice channel to perform this action.';
|
||||||
}
|
notValidGuildId: '{{icon}} **Oops!**\nNo permission to perform this action.\n\nThe command {{command}} cannot be executed in this server.';
|
||||||
|
queueDoesNotExist: '{{icon}} **Oops!**\nThere are no tracks in the queue and nothing currently playing. First add some tracks with {{playCommand}}!';
|
||||||
|
queueIsEmpty: '{{icon}} **Oops!\nThere are no tracks added to the queue. First add some tracks with {{playCommand}}!';
|
||||||
|
queueNoCurrentTrack: '{{icon}} **Oops!**\nThere is nothing currently playing. First add some tracks with {{playCommand}}!';
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Resources;
|
export default Resources;
|
||||||
@@ -16,7 +16,7 @@ import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
|||||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||||
import { checkQueueExists } from '../../../utils/validation/queueValidator';
|
import { checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||||
import { formatDuration, formatRepeatModeDetailed } from '../../../common/formattingUtils';
|
import { formatDuration, formatRepeatModeDetailed, formatSlashCommand } from '../../../common/formattingUtils';
|
||||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||||
import { TFunction } from 'i18next';
|
import { TFunction } from 'i18next';
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ class QueueCommand extends BaseSlashCommandInteraction {
|
|||||||
const totalPages: number = this.getTotalPages(queue);
|
const totalPages: number = this.getTotalPages(queue);
|
||||||
|
|
||||||
if (pageIndex > totalPages - 1) {
|
if (pageIndex > totalPages - 1) {
|
||||||
return await this.handleInvalidPage(logger, interaction, pageIndex, totalPages);
|
return await this.handleInvalidPage(logger, interaction, pageIndex, totalPages, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
const queueTracksListString: string = this.getQueueTracksListString(queue, pageIndex, translator);
|
const queueTracksListString: string = this.getQueueTracksListString(queue, pageIndex, translator);
|
||||||
@@ -181,7 +181,8 @@ class QueueCommand extends BaseSlashCommandInteraction {
|
|||||||
logger: Logger,
|
logger: Logger,
|
||||||
interaction: ChatInputCommandInteraction,
|
interaction: ChatInputCommandInteraction,
|
||||||
pageIndex: number,
|
pageIndex: number,
|
||||||
totalPages: number
|
totalPages: number,
|
||||||
|
translator: TFunction
|
||||||
) {
|
) {
|
||||||
logger.debug('Specified page was higher than total pages.');
|
logger.debug('Specified page was higher than total pages.');
|
||||||
|
|
||||||
@@ -190,9 +191,11 @@ class QueueCommand extends BaseSlashCommandInteraction {
|
|||||||
embeds: [
|
embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${this.embedOptions.icons.warning} Oops!**\n` +
|
translator('commands.queue.invalidPageNumber', {
|
||||||
`Page **\`${pageIndex + 1}\`** is not a valid page number.\n\n` +
|
icon: this.embedOptions.icons.warning,
|
||||||
`There are only a total of **\`${totalPages}\`** pages in the queue.`
|
page: pageIndex + 1,
|
||||||
|
count: totalPages
|
||||||
|
})
|
||||||
)
|
)
|
||||||
.setColor(this.embedOptions.colors.warning)
|
.setColor(this.embedOptions.colors.warning)
|
||||||
]
|
]
|
||||||
@@ -210,7 +213,9 @@ class QueueCommand extends BaseSlashCommandInteraction {
|
|||||||
|
|
||||||
private getQueueTracksListString(queue: GuildQueue, pageIndex: number, translator: TFunction): string {
|
private getQueueTracksListString(queue: GuildQueue, pageIndex: number, translator: TFunction): string {
|
||||||
if (!queue || queue.tracks.data.length === 0) {
|
if (!queue || queue.tracks.data.length === 0) {
|
||||||
return 'The queue is empty, add some tracks with **`/play`**!';
|
return translator('commands.queue.emptyQueue', {
|
||||||
|
playCommand: formatSlashCommand('play', translator)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return queue.tracks.data
|
return queue.tracks.data
|
||||||
@@ -221,9 +226,11 @@ class QueueCommand extends BaseSlashCommandInteraction {
|
|||||||
.join('\n');
|
.join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
private getDisplayQueueTotalDuration(queue: GuildQueue): string {
|
private getDisplayQueueTotalDuration(queue: GuildQueue, translator: TFunction): string {
|
||||||
if (queue.tracks.data.length > 1000) {
|
if (queue.tracks.data.length > 1000) {
|
||||||
return 'Estimated duration: A really long time';
|
return translator('commands.queue.estimatedReallyLongTime', {
|
||||||
|
playCommand: formatSlashCommand('play', translator)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let queueDurationMs: number = queue.estimatedDuration;
|
let queueDurationMs: number = queue.estimatedDuration;
|
||||||
@@ -232,10 +239,14 @@ class QueueCommand extends BaseSlashCommandInteraction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (queueDurationMs < 0) {
|
if (queueDurationMs < 0) {
|
||||||
return 'Estimated duration: A really long time';
|
return translator('commands.queue.estimatedReallyLongTime', {
|
||||||
|
playCommand: formatSlashCommand('play', translator)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return `Estimated duration: ${formatDuration(queueDurationMs)}`;
|
return translator('commands.queue.estimatedDuration', {
|
||||||
|
duration: formatDuration(queueDurationMs)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private getDisplayFullFooterInfo(
|
private getDisplayFullFooterInfo(
|
||||||
@@ -244,7 +255,7 @@ class QueueCommand extends BaseSlashCommandInteraction {
|
|||||||
translator: TFunction
|
translator: TFunction
|
||||||
): EmbedFooterData {
|
): EmbedFooterData {
|
||||||
const pagination = this.getFooterDisplayPageInfo(interaction, queue, translator);
|
const pagination = this.getFooterDisplayPageInfo(interaction, queue, translator);
|
||||||
const totalDuration = this.getDisplayQueueTotalDuration(queue);
|
const totalDuration = this.getDisplayQueueTotalDuration(queue, translator);
|
||||||
|
|
||||||
const fullFooterData = {
|
const fullFooterData = {
|
||||||
text: `${pagination.text} - ${totalDuration}`
|
text: `${pagination.text} - ${totalDuration}`
|
||||||
|
|||||||
Reference in new issue
Block a user