mirror of
https://github.com/artiemis/artemis.js.git
synced 2026-02-14 10:21:54 +00:00
add integration types
This commit is contained in:
parent
7cb09bc93a
commit
f41610f960
@ -1,5 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
ActivityType,
|
ActivityType,
|
||||||
|
ApplicationIntegrationType,
|
||||||
Client,
|
Client,
|
||||||
Collection,
|
Collection,
|
||||||
GatewayIntentBits,
|
GatewayIntentBits,
|
||||||
@ -106,10 +107,21 @@ export class ArtemisClient extends Client {
|
|||||||
|
|
||||||
const publicCommands = this.commands
|
const publicCommands = this.commands
|
||||||
.filter((command) => !command.isOwnerOnly)
|
.filter((command) => !command.isOwnerOnly)
|
||||||
.map((command) => command.data.toJSON());
|
.map((command) =>
|
||||||
|
command.data
|
||||||
|
.setIntegrationTypes(
|
||||||
|
ApplicationIntegrationType.GuildInstall,
|
||||||
|
ApplicationIntegrationType.UserInstall
|
||||||
|
)
|
||||||
|
.toJSON()
|
||||||
|
);
|
||||||
const ownerCommands = this.commands
|
const ownerCommands = this.commands
|
||||||
.filter((command) => command.isOwnerOnly)
|
.filter((command) => command.isOwnerOnly)
|
||||||
.map((command) => command.data.toJSON());
|
.map((command) =>
|
||||||
|
command.data
|
||||||
|
.setIntegrationTypes(ApplicationIntegrationType.GuildInstall)
|
||||||
|
.toJSON()
|
||||||
|
);
|
||||||
|
|
||||||
let guildCount = 0;
|
let guildCount = 0;
|
||||||
let globalCount = 0;
|
let globalCount = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user