Set the fucking context

This commit is contained in:
nin0 2025-04-30 20:13:19 -04:00
parent c95bec8427
commit df291c7d00
Signed by: nin0
SSH key fingerprint: SHA256:NOoDnFVvZNFvqfXCIhzr6oCTDImZAbTTuyAysZ8Ufk8

View file

@ -2,7 +2,9 @@ const {
Client,
ApplicationCommandOptionTypes,
ApplicationCommandTypes,
InteractionTypes
InteractionTypes,
ApplicationIntegrationTypes,
InteractionContextTypes
} = require("oceanic.js");
const client = new Client({
@ -14,6 +16,15 @@ client.on("ready", () => {
client.application.bulkEditGlobalCommands([
{
name: "say",
integrationTypes: [
ApplicationIntegrationTypes.GUILD_INSTALL,
ApplicationIntegrationTypes.USER_INSTALL
],
contexts: [
InteractionContextTypes.BOT_DM,
InteractionContextTypes.GUILD,
InteractionContextTypes.PRIVATE_CHANNEL
],
description: "Says whatever you provide",
options: [
{