From d9bee2dcf2e1e4e42c0fbb0f518efebe55799d39 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Tue, 23 Apr 2024 21:11:40 +0200 Subject: [PATCH] check-quota: define integration types and context to any --- src/commands/check-quota.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/commands/check-quota.ts b/src/commands/check-quota.ts index 3a2f5ef..4cc61d4 100644 --- a/src/commands/check-quota.ts +++ b/src/commands/check-quota.ts @@ -1,6 +1,10 @@ import { ApplicationCommandType, ChatInputCommandInteraction, APIApplicationCommandOption, ApplicationCommandOptionType, APIEmbedField } from "discord.js"; -import Command from "../command"; +import + Command +,{ApplicationIntegrationType +, InteractionContextTypes +} from "../command"; import { config } from "../index"; export default class MyLimit extends Command implements Command { @@ -21,6 +25,15 @@ export default class MyLimit extends Command implements Command { required: false, } ]; + integration_types = [ + ApplicationIntegrationType.Guild_Install, + ApplicationIntegrationType.User_Install + ]; + contexts = [ + InteractionContextTypes.Guild, + InteractionContextTypes.BotDM, + InteractionContextTypes.PrivateChannel + ]; async execute(interaction: ChatInputCommandInteraction) { let recoveryFor = interaction.options.getInteger("recovery-for", false);