Skip to content

Commit

Permalink
Added suggested docs changes
Browse files Browse the repository at this point in the history
Co-Authored-By: Reinhardt <[email protected]>
  • Loading branch information
JustCat80 and reinacchi committed Jul 26, 2021
1 parent 502bf7b commit 346161b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const Constants = require("../Constants");

/**
* Represents an interaction
* @prop {String} applicationID The id of the interaction's application
* @prop {String?} channelID The interaction token
* @prop {String} applicationID The ID of the interaction's application
* @prop {String?} channelID The ID of the channel in which the interaction was created
* @prop {Object?} data The data attached to the interaction
* @prop {Number?} data.componentType The type of Message Component (Message Component only)
* @prop {String?} data.custom_id The ID of the Button (Message Component)
Expand All @@ -20,13 +20,13 @@ const Constants = require("../Constants");
* @prop {Number} data.options.type Command option type, 1-9
* @prop {Number?} data.options.value The value of the run Slash Command (Mutually exclusive with options)
* @prop {Array<Object>?} data.options.options The run Slash Command options (Mutually exclusive with value)
* @prop {String?} guildID The id of the guild in which the interaction was created
* @prop {String} id The interaction id
* @prop {Member?} member the member who triggered the interaction (This is only sene when the interaction is invoked within a guild)
* @prop {String?} guildID The ID of the guild in which the interaction was created
* @prop {String} id The ID of the interaction
* @prop {Member?} member The member who triggered the interaction (This is only sent when the interaction is invoked within a guild)
* @prop {Message?} message The message the interaction came from (Message Component only)
* @prop {String} token The interaction token (Interaction tokens are valid for 15 minutes after initial response and can be used to send followup messages but you must send an initial response within 3 seconds of receiving the event. If the 3 second deadline is exceeded, the token will be invalidated.)
* @prop {Number} type 1 is a Ping, 2 is a Slash Command, 3 is a Message Component
* @prop {User?} user the user who triggered the interaction (This is only sent when the interaction is invoked within a dm)
* @prop {User?} user The user who triggered the interaction (This is only sent when the interaction is invoked within a dm)
* @prop {Number} version The interaction version
*/
class Interaction extends Base {
Expand Down

0 comments on commit 346161b

Please sign in to comment.