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,
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user