Advertisement
ii_kinqm1ke

User joins a VC

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