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);