From eb78f20cb5a65897598f2d035b59c9eb0c7b7c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Oszcz=C4=99da?= Date: Mon, 24 Jun 2024 19:41:43 +0100 Subject: [PATCH 1/3] fix: Restore the `show` parameter in `/word`. --- source/library/commands/commands.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/source/library/commands/commands.ts b/source/library/commands/commands.ts index d101c1c99..40dbde2e1 100644 --- a/source/library/commands/commands.ts +++ b/source/library/commands/commands.ts @@ -237,6 +237,7 @@ const commands = Object.freeze({ identifier: "verbose", type: Discord.ApplicationCommandOptionTypes.Boolean, }, + show: constants.parameters.show, }, flags: { hasRateLimit: true, isShowable: true }, }, From fd0ac536229a6a30b39ea18fcf9881dc509a539e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Oszcz=C4=99da?= Date: Mon, 24 Jun 2024 19:45:59 +0100 Subject: [PATCH 2/3] fix: Inexistent string being referenced. --- source/constants/contexts.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/source/constants/contexts.ts b/source/constants/contexts.ts index b7e567a4d..bc11447ea 100644 --- a/source/constants/contexts.ts +++ b/source/constants/contexts.ts @@ -335,7 +335,6 @@ export default Object.freeze({ }, }), correction: ({ localise, locale }) => ({ - correction: localise("correction.strings.correction", locale)(), suggestedBy: localise("correction.strings.suggestedBy", locale), }), tooManyReports: ({ localise, locale }) => ({ From 539507b56263c77f71a56d49ac3bb7c2bdf6f877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Oszcz=C4=99da?= Date: Mon, 24 Jun 2024 23:23:52 +0100 Subject: [PATCH 3/3] fix: Autocomplete interactions triggering rate limit. --- source/library/client.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/library/client.ts b/source/library/client.ts index 74af1e062..eb5b42292 100644 --- a/source/library/client.ts +++ b/source/library/client.ts @@ -487,7 +487,10 @@ class Client { const executedAt = Date.now(); - if (this.#commands.hasRateLimit(interaction)) { + if ( + interaction.type !== Discord.InteractionTypes.ApplicationCommandAutocomplete && + this.#commands.hasRateLimit(interaction) + ) { const rateLimit = this.#commands.getRateLimit(interaction, { executedAt }); if (rateLimit !== undefined) { const nextUsable = rateLimit.nextAllowedUsageTimestamp - executedAt;