mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix(editOrReply): accept flags when editing message
This commit is contained in:
parent
faa222275f
commit
53231465c0
@ -5,6 +5,7 @@ import type {
|
||||
APIInteractionResponseCallbackData,
|
||||
APIInteractionResponseChannelMessageWithSource,
|
||||
APIModalInteractionResponse,
|
||||
MessageFlags,
|
||||
RESTAPIPollCreate,
|
||||
RESTPatchAPIChannelMessageJSONBody,
|
||||
RESTPatchAPIWebhookWithTokenMessageJSONBody,
|
||||
@ -52,7 +53,9 @@ export type InteractionMessageUpdateBodyRequest = OmitInsert<
|
||||
RESTPatchAPIWebhookWithTokenMessageJSONBody,
|
||||
'components' | 'embeds' | 'poll',
|
||||
SendResolverProps
|
||||
>;
|
||||
> & {
|
||||
flags?: MessageFlags;
|
||||
};
|
||||
|
||||
export type ComponentInteractionMessageUpdate = OmitInsert<
|
||||
APIInteractionResponseCallbackData,
|
||||
|
@ -490,8 +490,8 @@ export class Interaction<
|
||||
fetchReply?: FR,
|
||||
): Promise<WebhookMessageStructure> {
|
||||
if (await this.replied) {
|
||||
const { content, embeds, allowed_mentions, components, files, attachments, poll } = body;
|
||||
return this.editResponse({ content, embeds, allowed_mentions, components, files, attachments, poll });
|
||||
const { content, embeds, allowed_mentions, components, files, attachments, poll, flags } = body;
|
||||
return this.editResponse({ content, embeds, allowed_mentions, components, files, attachments, poll, flags });
|
||||
}
|
||||
return this.write(body as InteractionCreateBodyRequest, fetchReply);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user