set contexts

This commit is contained in:
artie 2025-02-15 19:57:34 +01:00
parent f41610f960
commit 716a4532a1

View File

@ -4,6 +4,7 @@ import {
Client, Client,
Collection, Collection,
GatewayIntentBits, GatewayIntentBits,
InteractionContextType,
Partials, Partials,
} from "discord.js"; } from "discord.js";
import { REST } from "@discordjs/rest"; import { REST } from "@discordjs/rest";
@ -113,6 +114,11 @@ export class ArtemisClient extends Client {
ApplicationIntegrationType.GuildInstall, ApplicationIntegrationType.GuildInstall,
ApplicationIntegrationType.UserInstall ApplicationIntegrationType.UserInstall
) )
.setContexts([
InteractionContextType.BotDM,
InteractionContextType.Guild,
InteractionContextType.PrivateChannel,
])
.toJSON() .toJSON()
); );
const ownerCommands = this.commands const ownerCommands = this.commands