Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- discord.on('VOICE_STATE_UPDATE', async (state) => {
- const channel = await discord.getGuildTextChannel('252296452708106240');
- if (state.channelId) {
- channel?.sendMessage(`<@${state.userId}> is in a voice channel`);
- } else channel?.sendMessage(`<@${state.userId}> left a voice channel`);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement