Skip to content

Commit

Permalink
dont log empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsundso committed Dec 31, 2024
1 parent faea3fc commit 925504d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Events/BotEvents/raw/voiceChannelStatusUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import channelStatusUpdate from '../channelEvents/channelStatusUpdate/channelSta

export default async (data: { status: string; id: string; guild_id: string }) => {
const oldStatus = client.util.cache.voiceChannelStatus.get(data.id);
client.util.cache.voiceChannelStatus.set(data.id, data.status);
if (data.status?.length) client.util.cache.voiceChannelStatus.set(data.id, data.status);
else client.util.cache.voiceChannelStatus.delete(data.id);

const channel = client.channels.cache.get(data.id);
if (!channel) return;
Expand Down

0 comments on commit 925504d

Please sign in to comment.