From 857fb7defa6cb419c4ca051997537a6b98b7ae59 Mon Sep 17 00:00:00 2001 From: Canine8YT Date: Sat, 29 May 2021 08:46:27 -0500 Subject: [PATCH] Update Interaction.js --- lib/structures/Interaction.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/structures/Interaction.js b/lib/structures/Interaction.js index 6c0718d88..f8dbb227c 100644 --- a/lib/structures/Interaction.js +++ b/lib/structures/Interaction.js @@ -92,18 +92,12 @@ class Interaction extends Base { */ async createMessage(content) { - let data - if(typeof content == "string") { - data = {content: content}; - } else { - data = content; - } return await this._client.requestHandler.request("POST", Endpoints.INTERACTION_RESPONSE(this.id, this.token), true, { type: 4, - content: data.content, - embeds: data.embeds || [], - allowed_mentions: data.allowed_mentions || null, - flags: data.flags || 0, + content: content.content, + embeds: content.embeds || [], + allowed_mentions: content.allowed_mentions || null, + flags: content.flags || 0, }) }