From af04992ed3c2617fda686c2bc7338dcada283dc6 Mon Sep 17 00:00:00 2001 From: Jan <66554238+vaporox@users.noreply.github.com> Date: Thu, 23 Jun 2022 12:37:12 +0200 Subject: [PATCH] docs(Constants): fix SweeperKeys type (#8157) --- packages/discord.js/src/util/Constants.js | 2 +- packages/discord.js/typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/util/Constants.js b/packages/discord.js/src/util/Constants.js index c38f28a58..363efe252 100644 --- a/packages/discord.js/src/util/Constants.js +++ b/packages/discord.js/src/util/Constants.js @@ -113,7 +113,7 @@ exports.VoiceBasedChannelTypes = [ChannelType.GuildVoice, ChannelType.GuildStage /** * @typedef {Object} Constants Constants that can be used in an enum or object-like way. - * @property {SweeperKey} SweeperKey The possible names of items that can be swept in sweepers + * @property {SweeperKey[]} SweeperKeys The possible names of items that can be swept in sweepers * @property {NonSystemMessageTypes} NonSystemMessageTypes The types of messages that are not deemed a system type * @property {TextBasedChannelTypes} TextBasedChannelTypes The types of channels that are text-based * @property {ThreadChannelTypes} ThreadChannelTypes The types of channels that are threads diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 802d7957d..604b526f8 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -2972,7 +2972,7 @@ export type NonSystemMessageType = | MessageType.ContextMenuCommand; export const Constants: { - SweeperKeys: SweeperKey; + SweeperKeys: SweeperKey[]; NonSystemMessageTypes: NonSystemMessageType[]; TextBasedChannelTypes: TextBasedChannelTypes[]; ThreadChannelTypes: ThreadChannelType[];