lets go we ball

This commit is contained in:
nin0 2025-05-02 07:41:03 -04:00
parent 763e587289
commit 3c03e90325
Signed by: nin0
SSH key fingerprint: SHA256:NOoDnFVvZNFvqfXCIhzr6oCTDImZAbTTuyAysZ8Ufk8

View file

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