Skip to content

Commit

Permalink
using png format for sourceIcons
Browse files Browse the repository at this point in the history
  • Loading branch information
LakhindarPal committed Jun 30, 2024
1 parent 814b6e5 commit 54a86e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/config/sourceIcons.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
const sourceIcons = {
soundcloud:
"https://commons.wikimedia.org/wiki/Category:Logos_of_SoundCloud#/media/File:Antu_soundcloud.svg",
"https://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Antu_soundcloud.svg/512px-Antu_soundcloud.svg.png",
youtube:
"https://upload.wikimedia.org/wikipedia/commons/0/09/YouTube_full-color_icon_%282017%29.svg",
"https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/YouTube_full-color_icon_%282017%29.svg/512px-YouTube_full-color_icon_%282017%29.svg.png",
spotify:
"https://upload.wikimedia.org/wikipedia/commons/8/84/Spotify_icon.svg",
"https://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Spotify_icon.svg/512px-Spotify_icon.svg.png",
apple_music:
"https://upload.wikimedia.org/wikipedia/commons/5/59/Apple_Music_Icon.svg",
deezer: "https://upload.wikimedia.org/wikipedia/commons/6/6b/Deezer_Icon.svg",
"https://upload.wikimedia.org/wikipedia/commons/thumb/5/59/Apple_Music_Icon.svg/512px-Apple_Music_Icon.svg.png",
deezer:
"https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Deezer_Icon.svg/512px-Deezer_Icon.svg.png",
tidal:
"https://upload.wikimedia.org/wikipedia/commons/4/41/Tidal_%28service%29_logo_only.svg",
"https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Tidal_%28service%29_logo_only.svg/600px-Tidal_%28service%29_logo_only.svg.pnghttps://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Tidal_%28service%29_logo_only.svg/600px-Tidal_%28service%29_logo_only.svg.png",
};

export default sourceIcons;
2 changes: 1 addition & 1 deletion src/events/player/audioTracksAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const data = {
};

export async function execute(queue) {
if (!queue.size);
if (!queue.size) return;
try {
const components = [menu(queue), ...buttons(queue)].filter(Boolean);
await queue.metadata.message?.edit({
Expand Down
2 changes: 1 addition & 1 deletion src/modules/playing/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default (queue, track) => {
}[queue.repeatMode];

const status = `Duration: ${track.duration} | Volume: ${queue.node.volume}%
Repeat: ${repeatMode} | Shuffle: ${queue.isShuffling}`;
Repeat: ${repeatMode} | Shuffle: ${queue.isShuffling ? "✅" : "❎"}`;

return BaseEmbed()
.setAuthor({
Expand Down

0 comments on commit 54a86e7

Please sign in to comment.