mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 03:31:03 +00:00
Webpack build: b0c2f818a8
This commit is contained in:
parent
a1f0dbf188
commit
44602e9fb9
2 changed files with 6 additions and 25 deletions
|
|
@ -269,7 +269,6 @@ exports.VoiceOPCodes = {
|
||||||
|
|
||||||
exports.Events = {
|
exports.Events = {
|
||||||
READY: 'ready',
|
READY: 'ready',
|
||||||
GUILD_CACHED: 'guildCached',
|
|
||||||
GUILD_CREATE: 'guildCreate',
|
GUILD_CREATE: 'guildCreate',
|
||||||
GUILD_DELETE: 'guildDelete',
|
GUILD_DELETE: 'guildDelete',
|
||||||
GUILD_UPDATE: 'guildUpdate',
|
GUILD_UPDATE: 'guildUpdate',
|
||||||
|
|
@ -289,7 +288,6 @@ exports.Events = {
|
||||||
GUILD_EMOJI_UPDATE: 'emojiUpdate',
|
GUILD_EMOJI_UPDATE: 'emojiUpdate',
|
||||||
GUILD_BAN_ADD: 'guildBanAdd',
|
GUILD_BAN_ADD: 'guildBanAdd',
|
||||||
GUILD_BAN_REMOVE: 'guildBanRemove',
|
GUILD_BAN_REMOVE: 'guildBanRemove',
|
||||||
CHANNEL_CACHED: 'channelCached',
|
|
||||||
CHANNEL_CREATE: 'channelCreate',
|
CHANNEL_CREATE: 'channelCreate',
|
||||||
CHANNEL_DELETE: 'channelDelete',
|
CHANNEL_DELETE: 'channelDelete',
|
||||||
CHANNEL_UPDATE: 'channelUpdate',
|
CHANNEL_UPDATE: 'channelUpdate',
|
||||||
|
|
@ -19285,14 +19283,6 @@ class ClientDataManager {
|
||||||
const already = this.client.guilds.has(data.id);
|
const already = this.client.guilds.has(data.id);
|
||||||
const guild = new Guild(this.client, data);
|
const guild = new Guild(this.client, data);
|
||||||
this.client.guilds.set(guild.id, guild);
|
this.client.guilds.set(guild.id, guild);
|
||||||
if (this.client.listenerCount(Constants.Events.GUILD_CACHED)) {
|
|
||||||
/**
|
|
||||||
* Emitted whenever a guild is added to the cache
|
|
||||||
* @event Client#guildCached
|
|
||||||
* @param {Guild} guild The cached guild
|
|
||||||
*/
|
|
||||||
this.client.emit(Constants.Events.GUILD_CACHED, guild);
|
|
||||||
}
|
|
||||||
if (this.pastReady && !already) {
|
if (this.pastReady && !already) {
|
||||||
/**
|
/**
|
||||||
* Emitted whenever the client joins a guild.
|
* Emitted whenever the client joins a guild.
|
||||||
|
|
@ -19337,15 +19327,6 @@ class ClientDataManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (channel) {
|
if (channel) {
|
||||||
if (this.client.listenerCount(Constants.Events.CHANNEL_CACHED)) {
|
|
||||||
/**
|
|
||||||
* Emitted whenever a channel is added to the cache
|
|
||||||
* @event Client#channelCached
|
|
||||||
* @param {Channel} channel The cached channel
|
|
||||||
*/
|
|
||||||
this.client.emit(Constants.Events.CHANNEL_CACHED, channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.pastReady && !already) this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
|
if (this.pastReady && !already) this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
|
||||||
this.client.channels.set(channel.id, channel);
|
this.client.channels.set(channel.id, channel);
|
||||||
return channel;
|
return channel;
|
||||||
|
|
|
||||||
12
discord.indev.min.js
vendored
12
discord.indev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue