Professional Documents
Culture Documents
* @name FakeMute&Deafen
* @version 1
* @description Allows you to fake mute and deafen yourself, shows for others. This
has been found by many others but I've decided to add some features to beautify it.
* @author Shifts
* @source https://github.com/ignshifts
*/
WebSocket.prototype.original = WebSocket.prototype.send;
WebSocket.prototype.send = function (data) {
if (Object.prototype.toString.call(data) === "[object ArrayBuffer]") {
if (text.decode(data).includes("self_deaf")) {
data = data.replace('"self_mute":false');
}
}
WebSocket.prototype.original.apply(this, [data]);
};
BdApi.alert("Enabled", `You can now unmute or undeafen yourself and it will
show for others. The plugin will be disabled by default.`);
BdApi.Plugins.disable('FakeMute&Deafen')
}
stop() {}
};