Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Nov 14, 2024
2 parents f6e7a7e + 860ccd4 commit bf35ab6
Show file tree
Hide file tree
Showing 3 changed files with 454 additions and 389 deletions.
37 changes: 23 additions & 14 deletions dist/src/structures/Interaction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ export default Interaction;
* @see {@link https://discord.com/developers/docs/interactions/slash-commands#interaction-object-interaction-structure}
*/
declare class Interaction {
/**
* Edits a response to an interaction. Works up to 15 minutes after the response was sent.
* @param {Client} client The client instance.
* @param {String} interactionToken The interaction token.
* @param {Object?} options The new interaction response options.
* @param {String?} options.content The new content of the interaction response.
* @param {Array<FileUpload>?} options.files The new files to send with the interaction response.
* @param {Array<Embed>?} options.embeds The new embeds to send with the interaction response.
* @param {Array<ActionRow>?} options.components The new components to send with the interaction response.
* @returns {Promise<Interaction>}
* @public
* @async
* @method
* @throws {Error | TypeError}
*/
public static edit(client: Client, interactionToken: string, { content, files, embeds, components }: any | null): Promise<Interaction>;
/**
* Creates the structure for an interaction.
* @param {Client} client The client instance.
Expand All @@ -17,6 +33,13 @@ declare class Interaction {
* @public
*/
public readonly get id(): string;
/**
* The token of the interaction.
* @type {String}
* @readonly
* @public
*/
public readonly get token(): string;
/**
* The type of interaction.
* @type {Number}
Expand Down Expand Up @@ -100,20 +123,6 @@ declare class Interaction {
* @method
*/
public reply({ content, files, embeds, components, quiet }?: any | null): Promise<Interaction>;
/**
* Edits a response to an interaction. Works up to 15 minutes after the response was sent.
* @param {Object?} options The new interaction response options.
* @param {String?} options.content The new content of the interaction response.
* @param {Array<FileUpload>?} options.files The new files to send with the interaction response.
* @param {Array<Embed>?} options.embeds The new embeds to send with the interaction response.
* @param {Array<ActionRow>?} options.components The new components to send with the interaction response.
* @returns {Promise<Interaction>}
* @public
* @async
* @method
* @throws {Error | TypeError}
*/
public edit({ content, files, embeds, components }?: any | null): Promise<Interaction>;
/**
* Silently acknowledges an interaction.
* @returns {Promise<Interaction>}
Expand Down
2 changes: 1 addition & 1 deletion dist/src/structures/Interaction.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bf35ab6

Please sign in to comment.