mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Migrate most of the Client Data Store to Clien
This commit is contained in:
@@ -11,7 +11,7 @@ class GuildDeleteAction extends Action {
|
||||
|
||||
handle(data) {
|
||||
const client = this.client;
|
||||
let guild = client.store.get('guilds', data.id);
|
||||
let guild = client.guilds.get(data.id);
|
||||
|
||||
if (guild) {
|
||||
if (guild.available && data.unavailable) {
|
||||
@@ -26,7 +26,7 @@ class GuildDeleteAction extends Action {
|
||||
};
|
||||
}
|
||||
// delete guild
|
||||
client.store.remove('guilds', guild);
|
||||
client.guilds.delete(guild.id);
|
||||
this.deleted[guild.id] = guild;
|
||||
this.scheduleForDeletion(guild.id);
|
||||
} else if (this.deleted[data.id]) {
|
||||
|
||||
Reference in New Issue
Block a user