mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Remove GuildDataStore and move towards storing data in Maps
This commit is contained in:
@@ -12,7 +12,7 @@ class GuildRoleUpdateAction extends Action {
|
||||
|
||||
if (guild) {
|
||||
let oldRole;
|
||||
const existingRole = guild.store.get('roles', roleData.id);
|
||||
const existingRole = guild.roles.get(roleData.id);
|
||||
// exists and not the same
|
||||
if (existingRole && !existingRole.equals(roleData)) {
|
||||
oldRole = cloneObject(existingRole);
|
||||
|
||||
Reference in New Issue
Block a user