mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53: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
@@ -592,8 +592,8 @@ class Guild {
|
||||
* @returns {Promise}
|
||||
*/
|
||||
deleteEmoji(emoji) {
|
||||
if (emoji instanceof Emoji) emoji = emoji.id;
|
||||
return this.client.rest.methods.deleteEmoji(this, emoji);
|
||||
if (!(emoji instanceof Emoji)) emoji = this.emojis.get(emoji);
|
||||
return this.client.rest.methods.deleteEmoji(emoji);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user