fix: DELETE request instead of PATCH
This commit is contained in:
parent
6c576bec0a
commit
73e9ba9a25
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue