Make CI happy

This commit is contained in:
ayntee 2020-12-26 10:47:13 +04:00
parent 678e988aec
commit e25b7a8f5b
2 changed files with 3 additions and 3 deletions

View file

@ -88,7 +88,7 @@ export class GuildEmojisManager extends BaseChildManager<EmojiPayload, Emoji> {
const arr = await this.array() const arr = await this.array()
for (const elem of arr) { for (const elem of arr) {
const emojiID = elem.id !== null ? elem.id : elem.name const emojiID = elem.id !== null ? elem.id : elem.name
this.parent.delete(emojiID) this.parent.delete(emojiID as string)
} }
return true return true
} }

View file

@ -23,7 +23,7 @@ export class MessageReactionsManager extends BaseManager<
const emojiID = raw.emoji.id !== null ? raw.emoji.id : raw.emoji.name const emojiID = raw.emoji.id !== null ? raw.emoji.id : raw.emoji.name
let emoji = await this.client.emojis.get(emojiID) let emoji = await this.client.emojis.get(emojiID as string)
if (emoji === undefined) emoji = new Emoji(this.client, raw.emoji) if (emoji === undefined) emoji = new Emoji(this.client, raw.emoji)
const reaction = new MessageReaction(this.client, raw, this.message, emoji) const reaction = new MessageReaction(this.client, raw, this.message, emoji)
@ -46,7 +46,7 @@ export class MessageReactionsManager extends BaseManager<
return await Promise.all( return await Promise.all(
arr.map(async (raw) => { arr.map(async (raw) => {
const emojiID = raw.emoji.id !== null ? raw.emoji.id : raw.emoji.name const emojiID = raw.emoji.id !== null ? raw.emoji.id : raw.emoji.name
let emoji = await this.client.emojis.get(emojiID) let emoji = await this.client.emojis.get(emojiID as string)
if (emoji === undefined) emoji = new Emoji(this.client, raw.emoji) if (emoji === undefined) emoji = new Emoji(this.client, raw.emoji)
return new MessageReaction(this.client, raw, this.message, emoji) return new MessageReaction(this.client, raw, this.message, emoji)