mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
Updated voiceStateUpdate
This commit is contained in:
parent
07e45ae54d
commit
0ef9cad101
@ -2,6 +2,7 @@ const {
|
|||||||
getVoiceConnection,
|
getVoiceConnection,
|
||||||
joinVoiceChannel
|
joinVoiceChannel
|
||||||
} = require("@discordjs/voice");
|
} = require("@discordjs/voice");
|
||||||
|
const { createDiscordJSAdapter } = require("../utils/adapter");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "voiceStateUpdate",
|
name: "voiceStateUpdate",
|
||||||
@ -23,7 +24,7 @@ module.exports = {
|
|||||||
try {
|
try {
|
||||||
setTimeout(
|
setTimeout(
|
||||||
async () => (
|
async () => (
|
||||||
radio.connection = await joinVoiceChannel({
|
radio.connection = joinVoiceChannel({
|
||||||
channelId: oldState.channel.id,
|
channelId: oldState.channel.id,
|
||||||
guildId: oldState.channel.guild.id,
|
guildId: oldState.channel.guild.id,
|
||||||
adapterCreator: createDiscordJSAdapter(oldState.channel)
|
adapterCreator: createDiscordJSAdapter(oldState.channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user