Skip to content

Commit

Permalink
Interaction return changed
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed May 30, 2021
1 parent c4d3ae8 commit 6a87323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/structures/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ class Interaction extends Base {
if(typeof content == "string") {
content = {content: content};
}
return await this._client.requestHandler.request("POST", Endpoints.INTERACTION_RESPONSE(this.id, this.token), true, {
return this._client.requestHandler.request("POST", Endpoints.INTERACTION_RESPONSE(this.id, this.token), true, {
type: 4,
data: {
content: content.content,
embeds: content.embeds || [],
allowed_mentions: content.allowed_mentions || null,
flags: content.flags || 0,
}
}).then((a, b) => console.log(b))
})
}

}
Expand Down

0 comments on commit 6a87323

Please sign in to comment.