Skip to content

Commit

Permalink
Update Interaction.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed May 29, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 00d13a6 commit 51e9610
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/structures/Interaction.js
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ class Interaction extends Base {
}

/**
* Delete the message
* Respond to the interaction
* @arg {String | Object} content A string or object. If an object is passed:
* @arg {Object} [content.allowedMentions] A list of mentions to allow (overrides default)
* @arg {Boolean} [content.allowedMentions.everyone] Whether or not to allow @everyone/@here.
@@ -93,7 +93,9 @@ class Interaction extends Base {

async createMessage(content) {
if(typeof content == "string") {
content = {content: content};
data = {content: content};
} else {
data = content;
}
return await this._client.requestHandler.request("POST", Endpoints.INTERACTION_RESPONSE(this.id, this.token), true, {
type: 4,

0 comments on commit 51e9610

Please sign in to comment.