Set the fucking context
This commit is contained in:
parent
c95bec8427
commit
df291c7d00
1 changed files with 12 additions and 1 deletions
13
index.js
13
index.js
|
@ -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: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue