Apply automatic changes
This commit is contained in:
committed by
github-actions[bot]
parent
ffe0a86a33
commit
e2c3de4fae
@@ -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 }
|
||||
|
||||
@@ -394,7 +394,7 @@ function getDiscordMessageOptions(reacordOptions: MessageOptions) {
|
||||
})),
|
||||
}
|
||||
|
||||
if (!options.content && !options.embeds?.length) {
|
||||
if (!options.content && !options.embeds.length) {
|
||||
options.content = "_ _"
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user