Make CI happy
This commit is contained in:
parent
678e988aec
commit
e25b7a8f5b
2 changed files with 3 additions and 3 deletions
|
@ -88,7 +88,7 @@ export class GuildEmojisManager extends BaseChildManager<EmojiPayload, Emoji> {
|
|||
const arr = await this.array()
|
||||
for (const elem of arr) {
|
||||
const emojiID = elem.id !== null ? elem.id : elem.name
|
||||
this.parent.delete(emojiID)
|
||||
this.parent.delete(emojiID as string)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ export class MessageReactionsManager extends BaseManager<
|
|||
|
||||
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)
|
||||
|
||||
const reaction = new MessageReaction(this.client, raw, this.message, emoji)
|
||||
|
@ -46,7 +46,7 @@ export class MessageReactionsManager extends BaseManager<
|
|||
return await Promise.all(
|
||||
arr.map(async (raw) => {
|
||||
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)
|
||||
|
||||
return new MessageReaction(this.client, raw, this.message, emoji)
|
||||
|
|
Loading…
Reference in a new issue