From 4729f7f56339116600469d4c681cfbb4642f610a Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sat, 30 Sep 2023 13:23:33 +0200 Subject: [PATCH] /check-limit: rename to check-quota and change description to match it to the new reality, limits are named quotas now description of an option previously was longer than 100 characters which discord api didn't like it --- src/commands/{check-limit.ts => check-quota.ts} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename src/commands/{check-limit.ts => check-quota.ts} (91%) diff --git a/src/commands/check-limit.ts b/src/commands/check-quota.ts similarity index 91% rename from src/commands/check-limit.ts rename to src/commands/check-quota.ts index 14c0f58..3a2f5ef 100644 --- a/src/commands/check-limit.ts +++ b/src/commands/check-quota.ts @@ -4,13 +4,13 @@ import Command from "../command"; import { config } from "../index"; export default class MyLimit extends Command implements Command { - name = "check-limit"; - description = "Checks your limit and usage"; + name = "check-quota"; + description = "Checks your quota and usage"; type = ApplicationCommandType.ChatInput; options: APIApplicationCommandOption[] = [ { name: "recovery-for", - description: "Calculate the limit recovery time for given message count (default: amount required to use the bot again or 1)", + description: "Get the recovery time for given quota units count (default: until can use the bot or 1)", type: ApplicationCommandOptionType.Integer, required: false, }, @@ -18,6 +18,7 @@ export default class MyLimit extends Command implements Command { name: "ephemeral", description: "if true, only you can see the response (default true)", type: ApplicationCommandOptionType.Boolean, + required: false, } ];