Skip to content

Commit

Permalink
Reverting GUILD/CHANNEL find change.
Browse files Browse the repository at this point in the history
  • Loading branch information
manix84 authored Jun 17, 2021
1 parent 691fd8c commit 929f544
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ client.login(DISCORD_TOKEN);

client.on('ready', () => {
log('Bot is ready to mute them all! :)');
// discordGuild = client.guilds.get(DISCORD_GUILD);
discordGuild = client.guilds.find('id', DISCORD_GUILD);
// discordChannel = discordGuild.channels.get(DISCORD_CHANNEL);
discordChannel = guild.channels.find('id', DISCORD_CHANNEL);
discordGuild = client.guilds.get(DISCORD_GUILD);
// discordGuild = client.guilds.find('id', DISCORD_GUILD);
discordChannel = discordGuild.channels.get(DISCORD_CHANNEL);
// discordChannel = guild.channels.find('id', DISCORD_CHANNEL);
});
client.on('voiceStateUpdate', (oldMember, newMember) => { //player leaves the ttt-channel
if (oldMember.voiceChannel != newMember.voiceChannel && isMemberInVoiceChannel(oldMember)) {
Expand Down

0 comments on commit 929f544

Please sign in to comment.