mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Use alternatives to .find() because that's not polyfilled
This commit is contained in:
@@ -97,7 +97,7 @@ export default class Resolver {
|
||||
if (resource instanceof String || typeof resource === "string") {
|
||||
var role = null;
|
||||
for (var server of this.internal.servers) {
|
||||
if (role = server.roles.find(r => r.id == resource)) {
|
||||
if (role = server.roles.get("id", resource)) {
|
||||
return role;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user