Make linter happy :)

This commit is contained in:
ayntee 2020-12-25 20:41:21 +04:00
parent bef4d45a40
commit 6dd40afd3e

View file

@ -39,8 +39,8 @@ export class Emoji extends Base {
}
/** Modify the given emoji. Requires the MANAGE_EMOJIS permission. Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event. */
async edit(data: ModifyGuildEmojiParams) {
if (!this.guild) throw new Error('Guild is undefined')
async edit(data: ModifyGuildEmojiParams): Promise<Emoji> {
if (this.guild === undefined) throw new Error('Guild is undefined')
const res = await this.client.rest.patch(
EMOJI(this.guild.id, this.id),
data
@ -50,7 +50,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) throw new Error('Guild is undefined')
if (this.guild === undefined) throw new Error('Guild is undefined')
await this.client.rest.patch(EMOJI(this.guild.id, this.id))
return true
}