apply port workaround to voice maybe

This commit is contained in:
Cynthia Foxwell 2025-10-09 18:19:23 -06:00
parent 20dc6cbda2
commit fe00f3dfbf
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -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;
},
});