Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
channel.permissionsOf = () => new Permission(Permissions.all);
}
channel.permissionsOf = function permissionsOf(id) {
if (id === msg.guild.me.id) {
return new Permission(Permissions.all);
}
return oldPerms.call(this, id);
};
context.channel.permissionsOf = () => new Permission(Permissions.all);
}