mirror of
https://github.com/artiemis/artemis.js.git
synced 2026-02-14 10:21:54 +00:00
set contexts
This commit is contained in:
parent
f41610f960
commit
716a4532a1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user