From 51e961024a4aa89af6007d0b137bf26505aa7fd4 Mon Sep 17 00:00:00 2001 From: Canine8YT Date: Sat, 29 May 2021 08:43:27 -0500 Subject: [PATCH] Update Interaction.js --- lib/structures/Interaction.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/structures/Interaction.js b/lib/structures/Interaction.js index 64f6d2877..3578b19f7 100644 --- a/lib/structures/Interaction.js +++ b/lib/structures/Interaction.js @@ -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,