/|ĶÎŦÃŖŮ|\
/|ĶÎŦÃŖŮ|\
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
and it work now
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
I add await
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
Fetch is a async func
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
I think
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
No description
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
guild.removeRole({ user: member, role: mutedRole }); 27.02 12:06:46 [Bot] ^ 27.02 12:06:46 [Bot] TypeError: guild.removeRole is not a function
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
oh
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
Something like this?
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
guild.removeRole(row.id, mutedRoleId)
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
and trying
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
i reading that
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
No description
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
27.02 11:51:31 [Bot] member.roles.remove(mutedRoleId); 27.02 11:51:31 [Bot] ^ 27.02 11:51:31 [Bot] TypeError: Cannot read properties of undefined (reading 'remove')
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/27/2024 in #djs-questions
Question about getting a user from his ID
No description
25 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/26/2024 in #djs-questions
Trouble with fetch roles in command
Thx for help
5 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/26/2024 in #djs-questions
Trouble with fetch roles in command
I trying that
5 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/19/2024 in #djs-questions
Counting voice
@Qjuh Thank you very much for the explanation, I understood what I was doing wrong, I tried to read users in the loop every time, although it was easier to just count those who left and entered, while giving as the main number, the number of participants in voice channels, you really helped me figure it out. I'm sorry that I was so stupid, it's just that I myself speak Russian or Belarusian, and it's a couple of difficult to understand guides and documentation. Thank you again.
14 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/19/2024 in #djs-questions
Counting voice
The very moment when the case or comma was lost
14 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/19/2024 in #djs-questions
Counting voice
:wolfy_derp:
14 replies
DIAdiscord.js - Imagine a bot
Created by /|ĶÎŦÃŖŮ|\ on 2/19/2024 in #djs-questions
Counting voice
Maybe I didn't understand something
client.on(Events.VoiceStateUpdate, (oldState, newState) => {
if (oldState.channelID === null && newState.channelID !== null) {
voiceMembers++;
console.log('Пользователь вошел в голосовой канал!');
} else if (oldState.channelID !== null && newState.channelID === null) {
voiceMembers--;
console.log('Пользователь вышел из голосового канала!');
}

console.log(`Текущее количество участников в голосовых каналах: ${voiceMembers}`);
});
client.on(Events.VoiceStateUpdate, (oldState, newState) => {
if (oldState.channelID === null && newState.channelID !== null) {
voiceMembers++;
console.log('Пользователь вошел в голосовой канал!');
} else if (oldState.channelID !== null && newState.channelID === null) {
voiceMembers--;
console.log('Пользователь вышел из голосового канала!');
}

console.log(`Текущее количество участников в голосовых каналах: ${voiceMembers}`);
});
But it doesn't work, it's not my thing, before that, of course, I somehow coped with God's help.
14 replies