This commit is contained in:
Socram03 2025-06-23 10:04:21 -04:00
commit a15eb2035f
No known key found for this signature in database
GPG Key ID: 11DB37D45928C54E
2 changed files with 9 additions and 8 deletions

View File

@ -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",

View File

@ -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
>;