mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Use alternatives to .find() because that's not polyfilled
This commit is contained in:
@@ -155,9 +155,7 @@ var Resolver = (function () {
|
||||
|
||||
var server = _ref;
|
||||
|
||||
if (role = server.roles.find(function (r) {
|
||||
return r.id == resource;
|
||||
})) {
|
||||
if (role = server.roles.get("id", resource)) {
|
||||
return role;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user