fix: DELETE request instead of PATCH

This commit is contained in:
ayntee 2020-12-26 10:17:54 +04:00
parent 6c576bec0a
commit 73e9ba9a25

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. */ /** Delete the given emoji. Requires the MANAGE_EMOJIS permission. Returns `true` on success. Fires a Guild Emojis Update Gateway event. */
async delete(): Promise<boolean> { async delete(): Promise<boolean> {
if (this.guild === undefined) return false 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 return true
} }