Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
});
})(Eris.Shard.prototype);
Eris.TextChannel.prototype.send = Eris.TextChannel.prototype.createMessage;
odf(Eris.User.prototype, "send", function () {
const args = arguments;
const user = this;
return new Promise((res, rej) => {
user.getDMChannel().then((channel) => {
channel.createMessage.apply(channel, args).then(res).catch(rej);
}).catch(rej);
});
});
odg(Eris.VoiceChannel.prototype, "joinable", function(){return this.permissionsOf(this.guild.shard.client.user.id).has("voiceConnect");});
odg(Eris.VoiceChannel.prototype, "members", function(){return this.voiceMembers;});
odg(Eris.VoiceConnection.prototype, "channel", function () {
var ret = this.flavorSavedChannel;
if (!ret)
ret = this.flavorSavedChannel = this.shard.client.guilds.get(this.id).channels.get(this.channelID);
return ret;
});
})(Eris.Shard.prototype);
Eris.TextChannel.prototype.send = Eris.TextChannel.prototype.createMessage;
odf(Eris.User.prototype, "send", function () {
const args = arguments;
const user = this;
return new Promise((res, rej) => {
user.getDMChannel().then((channel) => {
channel.createMessage.apply(channel, args).then(res).catch(rej);
}).catch(rej);
});
});
odg(Eris.VoiceChannel.prototype, "joinable", function(){return this.permissionsOf(this.guild.shard.client.user.id).has("voiceConnect");});
odg(Eris.VoiceChannel.prototype, "members", function(){return this.voiceMembers;});
odg(Eris.VoiceConnection.prototype, "channel", function () {
var ret = this.flavorSavedChannel;
if (!ret)
ret = this.flavorSavedChannel = this.shard.client.guilds.get(this.id).channels.get(this.channelID);
return ret;
});