Closed phamleduy04 closed 3 years ago
@phamleduy04 You need to change this part to guildId: message.guild.id
and then it will join the voice channel.
As for the shard restarting itself, I'm unable to reproduce it. But by changing guildID
to guildId
, it should join.
oh yes my bad, when I changed to guildId
it join and I no longer have issue with shard anymore, thanks.
Please describe the problem you are having in as much detail as possible: When I'm trying to join a voice channel using
joinVoiceChannel()
, the shard restart itself and the bot won't join a channel. Include a reproducible code sample here, if possible:Further details:
Relevant client options:
['MESSAGE', 'CHANNEL', 'REACTION', 'USER']
GUILDS, GUILD_BANS, GUILD_EMOJIS_AND_STICKERS, GUILD_INTEGRATIONS, GUILD_MESSAGES, GUILD_MESSAGE_REACTIONS, GUILD_MESSAGE_TYPING, GUILD_VOICE_STATES, GUILD_WEBHOOKS, DIRECT_MESSAGES, GUILD_INVITES