diff --git a/src/index.js b/src/index.js index cf2332d..6812617 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -const {Client, Collection, Channel, Permission} = require("@projectdysnomia/dysnomia"); +const {Client, Collection, Channel, Permission, VoiceConnection} = require("@projectdysnomia/dysnomia"); const fs = require("node:fs"); const {resolve} = require("node:path"); const sqlite3 = require("sqlite3"); @@ -258,3 +258,17 @@ instead(bot.shards, "spawn", function (args, orig) { process.title = `HiddenPhox`; bot.connect(); + +Object.defineProperty(VoiceConnection, "udpSocket", { + configurable: true, + set(socket) { + if (socket != null) { + socket.bind(27019); + } + + this._udpSocket = socket; + }, + get() { + return this._udpSocket; + }, +});