Apply automatic changes

This commit is contained in:
itsMapleLeaf
2023-09-27 17:23:41 +00:00
committed by github-actions[bot]
parent ffe0a86a33
commit e2c3de4fae
8 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import { snakeCaseDeep } from "@reacord/helpers/convert-object-property-case"
import { omit } from "@reacord/helpers/omit"
import React from "react"
import type React from "react"
import { ReacordElement } from "../../internal/element.js"
import type { MessageOptions } from "../../internal/message"
import { Node } from "../../internal/node.js"
@@ -17,7 +17,7 @@ export interface EmbedProps {
description?: string
url?: string
color?: number
fields?: { name: string; value: string; inline?: boolean }[]
fields?: Array<{ name: string; value: string; inline?: boolean }>
author?: { name: string; url?: string; iconUrl?: string }
thumbnail?: { url: string }
image?: { url: string }

View File

@@ -394,7 +394,7 @@ function getDiscordMessageOptions(reacordOptions: MessageOptions) {
})),
}
if (!options.content && !options.embeds?.length) {
if (!options.content && !options.embeds.length) {
options.content = "_ _"
}

View File

@@ -26,7 +26,7 @@ export class Container<T> {
}
findType<U extends T>(
type: new (...args: NonNullable<unknown>[]) => U,
type: new (...args: Array<NonNullable<unknown>>) => U,
): U | undefined {
for (const item of this.items) {
if (item instanceof type) return item