mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Migrate most of the Client Data Store to Clien
This commit is contained in:
@@ -6,7 +6,7 @@ class GuildRoleCreate extends Action {
|
||||
|
||||
handle(data) {
|
||||
const client = this.client;
|
||||
const guild = client.store.get('guilds', data.guild_id);
|
||||
const guild = client.guilds.get(data.guild_id);
|
||||
|
||||
if (guild) {
|
||||
const already = guild.roles.get(data.role.id);
|
||||
|
||||
Reference in New Issue
Block a user