From 678e988aece698fb05d8bc1732f485e8b87b2f33 Mon Sep 17 00:00:00 2001 From: ayntee Date: Sat, 26 Dec 2020 10:38:20 +0400 Subject: [PATCH] Remove redundant null assertion --- src/structures/emoji.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/emoji.ts b/src/structures/emoji.ts index 3157ae7..daa5b03 100644 --- a/src/structures/emoji.ts +++ b/src/structures/emoji.ts @@ -47,7 +47,7 @@ export class Emoji extends Base { async edit(data: ModifyGuildEmojiParams): Promise { if (this.id === null) throw new Error('Emoji ID is not valid.') if (this.guild === undefined) throw new Error('Guild is undefined') - const res = await this.client.rest.patch(EMOJI(this.guild.id, this.id!), { + const res = await this.client.rest.patch(EMOJI(this.guild.id, this.id), { ...data, roles: data.roles?.map((role) => role.id) })