Skip to content

Commit

Permalink
Removed dead space between comments and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed May 30, 2021
1 parent fb16393 commit 5e51d79
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const Endpoints = require("../rest/Endpoints");
* @prop {String} token The interaction token (Interaction tokens are valid for 15 minutes 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 {Number} version The interaction version
*
*/
class Interaction extends Base {
constructor(data, client) {
Expand Down Expand Up @@ -94,7 +93,6 @@ class Interaction extends Base {
* @arg {Boolean} [content.flags] 64 for Ephemeral
* @returns {Promise}
*/

async createFollowup(content) {
if(content !== undefined) {
if(typeof content !== "object" || content === null) {
Expand Down Expand Up @@ -132,7 +130,6 @@ class Interaction extends Base {
* @arg {Boolean} [content.flags] 64 for Ephemeral
* @returns {Promise}
*/

async createMessage(content) {
if(content !== undefined) {
if(typeof content !== "object" || content === null) {
Expand Down Expand Up @@ -165,7 +162,6 @@ class Interaction extends Base {
* @arg {Boolean} [flags] 64 for Ephemeral
* @returns {Promise}
*/

async defer(flags) {
return this._client.requestHandler.request("POST", Endpoints.INTERACTION_RESPOND(this.id, this.token), true, {
type: Constants.InteractionResponseType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE,
Expand All @@ -179,21 +175,19 @@ class Interaction extends Base {
* Defer message update (Message Component only)
* @returns {Promise}
*/

async deferUpdate() {
return this._client.requestHandler.request("POST", Endpoints.INTERACTION_RESPOND(this.id, this.token), true, {
type: Constants.InteractionResponseType.DEFERRED_UPDATE_MESSAGE,
})
}

//TODO: Find out why broken

/**
* Delete a message !!Does nothing for some reason
* @arg {String} messageId the id of the message to edit, or "@original" for the original response, "@original" will will error with ephemeral messages
* @returns {Promise}
*/

//TODO: Find out why broken

async delete(messageId) {
if(!messageId)
return this._client.requestHandler.request("DELETE", Endpoints.WEBHOOK_MESSAGE(this.applicationId, this.token, messageId), true)
Expand All @@ -205,7 +199,6 @@ class Interaction extends Base {
* @arg {String | Object} content What to edit the message with
* @returns {Promise}
*/

async edit(messageId, content) {
if(content !== undefined) {
if(typeof content !== "object" || content === null) {
Expand Down Expand Up @@ -233,7 +226,6 @@ class Interaction extends Base {
* @arg {String | Object} content What to edit the message with
* @returns {Promise}
*/

async editParent(content) {
if(content !== undefined) {
if(typeof content !== "object" || content === null) {
Expand Down

0 comments on commit 5e51d79

Please sign in to comment.