lets go we ball
This commit is contained in:
parent
763e587289
commit
3c03e90325
1 changed files with 4 additions and 3 deletions
7
index.js
7
index.js
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue