seyfert 2.1.1-dev-12340785707.0 → 2.1.1-dev-12341742427.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -178,6 +178,8 @@ export interface ModalSubmitInteraction<FromGuild extends boolean = boolean> ext
178
178
  }
179
179
  export declare class ModalSubmitInteraction<FromGuild extends boolean = boolean> extends BaseInteraction<FromGuild> {
180
180
  data: ObjectToLower<APIModalSubmission>;
181
+ update<WR extends boolean = false>(data: ComponentInteractionMessageUpdate, withResponse?: WR): Promise<When<WR, import("./Message").WebhookMessage, undefined>>;
182
+ deferUpdate<WR extends boolean = false>(withResponse?: WR): Promise<When<WR, import("./Message").WebhookMessage, undefined>>;
181
183
  get customId(): string;
182
184
  get components(): {
183
185
  components: {
@@ -467,6 +467,17 @@ class MessageCommandInteraction extends ApplicationCommandInteraction {
467
467
  }
468
468
  exports.MessageCommandInteraction = MessageCommandInteraction;
469
469
  let ModalSubmitInteraction = class ModalSubmitInteraction extends BaseInteraction {
470
+ update(data, withResponse) {
471
+ return this.reply({
472
+ type: types_1.InteractionResponseType.UpdateMessage,
473
+ data,
474
+ }, withResponse);
475
+ }
476
+ deferUpdate(withResponse) {
477
+ return this.reply({
478
+ type: types_1.InteractionResponseType.DeferredMessageUpdate,
479
+ }, withResponse);
480
+ }
470
481
  get customId() {
471
482
  return this.data.customId;
472
483
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.1.1-dev-12340785707.0",
3
+ "version": "2.1.1-dev-12341742427.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",