Skip to content

Commit

Permalink
Fix bug in SetupSystem.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Apr 14, 2024
1 parent fdceb21 commit 5ff80a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/SetupSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { Song } from '../structures/Dispatcher.js';
import { Dispatcher, Lavamusic } from '../structures/index.js';

function neb(embed: EmbedBuilder, player: Dispatcher, client: Lavamusic): EmbedBuilder {

if (player && !player.current && !player.current.info) return embed;

let iconUrl = client.config.icons[player.current.info.sourceName];
if (!iconUrl) iconUrl = client.user.displayAvatarURL({ extension: 'png' });

Expand Down

0 comments on commit 5ff80a3

Please sign in to comment.