fix: DELETE request instead of PATCH

This commit is contained in:
ayntee 2020-12-26 10:17:54 +04:00
parent 6c576bec0a
commit 73e9ba9a25
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ export class Emoji extends Base {
/** Delete the given emoji. Requires the MANAGE_EMOJIS permission. Returns `true` on success. Fires a Guild Emojis Update Gateway event. */
async delete(): Promise<boolean> {
if (this.guild === undefined) return false
await this.client.rest.patch(EMOJI(this.guild.id, this.id))
await this.client.rest.delete(EMOJI(this.guild.id, this.id))
return true
}