diff --git a/index.js b/index.js index 3b4d898..f31ca2a 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,8 @@ const { ApplicationIntegrationTypes, InteractionContextTypes, MessageFlags, - ComponentTypes + ComponentTypes, + Util } = require("oceanic.js"); const client = new Client({ @@ -71,12 +72,12 @@ client.on("interactionCreate", async (interaction) => { if (cv2Text) return interaction.createFollowup({ flags: MessageFlags.IS_UIKIT_COMPONENTS, - components: [ + components: Util.rawMessageComponents([ { type: ComponentTypes.TEXT, content } - ] + ]) }); interaction.createFollowup(