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