mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Add full guild emoji functionality (#749)
* all the emoji stuff
* fix things for hydra 😘
* feck i need to stop committing on github
* update docs again
* Butts
This commit is contained in:
committed by
Schuyler Cebulskie
parent
682e33cad9
commit
aed75e1f9a
13
src/client/websocket/packets/handlers/GuildEmojiUpdate.js
Normal file
13
src/client/websocket/packets/handlers/GuildEmojiUpdate.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const AbstractHandler = require('./AbstractHandler');
|
||||
|
||||
class GuildEmojiUpdate extends AbstractHandler {
|
||||
handle(packet) {
|
||||
const client = this.packetManager.client;
|
||||
const data = packet.d;
|
||||
const guild = client.guilds.get(data.guild_id);
|
||||
if (!guild) return;
|
||||
client.actions.EmojiUpdate.handle(data, guild);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = GuildEmojiUpdate;
|
||||
Reference in New Issue
Block a user