apply port workaround to voice maybe
This commit is contained in:
parent
20dc6cbda2
commit
fe00f3dfbf
1 changed files with 15 additions and 1 deletions
16
src/index.js
16
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;
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue