persistent emojis

This commit is contained in:
Lamp 2018-12-11 22:46:21 -08:00
parent a0810e0579
commit f3d69a4c4c
No known key found for this signature in database
GPG Key ID: 0F1F8704BEDE369E
2 changed files with 10 additions and 0 deletions

View File

@ -22,3 +22,7 @@ dClient.on("voiceStateUpdate", async function(oldState, newState){
if (newState.guild.id == config.guildID) if (newState.guild.id == config.guildID)
this.emit("local_voiceStateUpdate", oldState, newState); this.emit("local_voiceStateUpdate", oldState, newState);
}); });
dClient.on("emojiDelete", async function(emoji){
if (emoji.guild.id == config.guildID)
this.emit("local_emojiDelete", emoji);
});

View File

@ -84,3 +84,9 @@
} }
}); });
})();*/ })();*/
// persistent emojis
dClient.on("local_emojiDelete", emoji => {
emoji.guild.emojis.create(emoji.url, emoji.name);
});