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, }) }