mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 15:11:32 +00:00
Webpack build for branch data-store-refactor: 262e1699b58ed82ffc3f56f62b7b108cb3e31a52
This commit is contained in:
parent
d4ce3469eb
commit
46d93e8061
2 changed files with 5 additions and 19 deletions
|
|
@ -22832,20 +22832,6 @@ class ClientDataManager {
|
|||
this.client = client;
|
||||
}
|
||||
|
||||
get pastReady() {
|
||||
return this.client.ws.connection.status === Constants.Status.READY;
|
||||
}
|
||||
|
||||
updateGuild(currentGuild, newData) {
|
||||
const oldGuild = Util.cloneObject(currentGuild);
|
||||
currentGuild.setup(newData);
|
||||
if (this.pastReady) this.client.emit(Constants.Events.GUILD_UPDATE, oldGuild, currentGuild);
|
||||
}
|
||||
|
||||
updateChannel(currentChannel, newData) {
|
||||
currentChannel.setup(newData);
|
||||
}
|
||||
|
||||
updateEmoji(currentEmoji, newData) {
|
||||
const oldEmoji = Util.cloneObject(currentEmoji);
|
||||
currentEmoji.setup(newData);
|
||||
|
|
|
|||
10
discord.data-store-refactor.min.js
vendored
10
discord.data-store-refactor.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue