mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: type errors
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import type { Camelize, DiscordChannel, DiscordGuild } from '@discordeno/types'
|
import type { Camelize, DiscordChannel } from '@discordeno/types'
|
||||||
import { AutoModerationActionType, AutoModerationEventTypes, AutoModerationTriggerTypes } from '@discordeno/types'
|
import { AutoModerationActionType, AutoModerationEventTypes, AutoModerationTriggerTypes } from '@discordeno/types'
|
||||||
import { expect } from 'chai'
|
import { expect } from 'chai'
|
||||||
import { e2ecache, rest } from './utils.js'
|
import { e2ecache, rest } from './utils.js'
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ describe('Sticker tests', async () => {
|
|||||||
expect(editSticker.description).to.equal('sticker description')
|
expect(editSticker.description).to.equal('sticker description')
|
||||||
expect(editSticker.tags).to.equal('sticker tags')
|
expect(editSticker.tags).to.equal('sticker tags')
|
||||||
|
|
||||||
const sticker2 = await rest.createGuildSticker(e2ecache.guild.id, {
|
await rest.createGuildSticker(e2ecache.guild.id, {
|
||||||
name: 'sticker 2',
|
name: 'sticker 2',
|
||||||
description: 'sticker 2',
|
description: 'sticker 2',
|
||||||
tags: 'sticker tags 2',
|
tags: 'sticker tags 2',
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ describe('Webhook helpers', async () => {
|
|||||||
expect(message2).to.exist
|
expect(message2).to.exist
|
||||||
expect(message2.content).to.equal(message?.content)
|
expect(message2.content).to.equal(message?.content)
|
||||||
|
|
||||||
const edited3 = await rest.editWebhookMessage(webhook.id, webhook.token!, message.id, {
|
const edited3 = await rest.editWebhookMessage(webhook.id, webhook.token!, message!.id, {
|
||||||
content: 'different',
|
content: 'different',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user