mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
Merge branch 'main' of https://github.com/tiramisulabs/seyfert
This commit is contained in:
commit
a15eb2035f
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "seyfert",
|
||||
"version": "3.2.2",
|
||||
"version": "3.2.3",
|
||||
"description": "The most advanced framework for discord bots",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib/index.js",
|
||||
|
@ -16,6 +16,7 @@ import type {
|
||||
import type { OmitInsert } from './util';
|
||||
|
||||
export interface ResolverProps {
|
||||
content?: string | undefined | null;
|
||||
embeds?: Embed[] | APIEmbed[] | undefined;
|
||||
components?: TopLevelBuilders[] | ReturnType<TopLevelBuilders['toJSON']>[];
|
||||
files?: AttachmentBuilder[] | Attachment[] | RawFile[] | undefined;
|
||||
@ -27,31 +28,31 @@ export interface SendResolverProps extends ResolverProps {
|
||||
|
||||
export type MessageCreateBodyRequest = OmitInsert<
|
||||
RESTPostAPIChannelMessageJSONBody,
|
||||
'components' | 'embeds' | 'poll',
|
||||
'components' | 'embeds' | 'poll' | 'content',
|
||||
SendResolverProps
|
||||
>;
|
||||
|
||||
export type MessageUpdateBodyRequest = OmitInsert<
|
||||
RESTPatchAPIChannelMessageJSONBody,
|
||||
'components' | 'embeds',
|
||||
'components' | 'embeds' | 'content',
|
||||
ResolverProps
|
||||
>;
|
||||
|
||||
export type MessageWebhookCreateBodyRequest = OmitInsert<
|
||||
RESTPostAPIWebhookWithTokenJSONBody,
|
||||
'components' | 'embeds' | 'poll',
|
||||
'components' | 'embeds' | 'poll' | 'content',
|
||||
SendResolverProps
|
||||
>;
|
||||
|
||||
export type MessageWebhookUpdateBodyRequest = OmitInsert<
|
||||
RESTPatchAPIWebhookWithTokenMessageJSONBody,
|
||||
'components' | 'embeds' | 'poll',
|
||||
'components' | 'embeds' | 'poll' | 'content',
|
||||
ResolverProps
|
||||
>;
|
||||
|
||||
export type InteractionMessageUpdateBodyRequest = OmitInsert<
|
||||
RESTPatchAPIWebhookWithTokenMessageJSONBody,
|
||||
'components' | 'embeds' | 'poll',
|
||||
'components' | 'embeds' | 'poll' | 'content',
|
||||
SendResolverProps
|
||||
> & {
|
||||
flags?: MessageFlags;
|
||||
@ -59,13 +60,13 @@ export type InteractionMessageUpdateBodyRequest = OmitInsert<
|
||||
|
||||
export type ComponentInteractionMessageUpdate = OmitInsert<
|
||||
APIInteractionResponseCallbackData,
|
||||
'components' | 'embeds',
|
||||
'components' | 'embeds' | 'content',
|
||||
ResolverProps
|
||||
>;
|
||||
|
||||
export type InteractionCreateBodyRequest = OmitInsert<
|
||||
APIInteractionResponseChannelMessageWithSource['data'],
|
||||
'components' | 'embeds' | 'poll',
|
||||
'components' | 'embeds' | 'poll' | 'content',
|
||||
SendResolverProps
|
||||
>;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user