Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Jun 24, 2024
2 parents 29536a5 + 539507b commit 89621a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion source/constants/contexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ export default Object.freeze({
},
}),
correction: ({ localise, locale }) => ({
correction: localise("correction.strings.correction", locale)(),
suggestedBy: localise("correction.strings.suggestedBy", locale),
}),
tooManyReports: ({ localise, locale }) => ({
Expand Down
5 changes: 4 additions & 1 deletion source/library/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions source/library/commands/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ const commands = Object.freeze({
identifier: "verbose",
type: Discord.ApplicationCommandOptionTypes.Boolean,
},
show: constants.parameters.show,
},
flags: { hasRateLimit: true, isShowable: true },
},
Expand Down

0 comments on commit 89621a9

Please sign in to comment.