From cc5f1ce75e48ee791d0d11262285e46e695fa19e Mon Sep 17 00:00:00 2001 From: monbrey Date: Fri, 30 Jul 2021 09:04:23 +1000 Subject: [PATCH] docs(Constants): document the Constants object for enum-like usage (#6208) Co-authored-by: SpaceEEC --- src/util/Constants.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/util/Constants.js b/src/util/Constants.js index 5ac5a1db7..0ff59026e 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -986,3 +986,35 @@ function createEnum(keys) { } return obj; } + +/** + * @typedef {Object} Constants Constants that can be used in an enum or object-like way. + * @property {ActivityType} ActivityTypes The type of an activity of a users presence. + * @property {APIError} APIErrors An error encountered while performing an API request. + * @property {ApplicationCommandOptionType} ApplicationCommandOptionTypes + * The type of an {@link ApplicationCommandOption} object. + * @property {ApplicationCommandPermissionType} ApplicationCommandPermissionTypes + * The type of an {@link ApplicationCommandPermissions} object. + * @property {ChannelType} ChannelTypes All available channel types. + * @property {DefaultMessageNotificationLevel} DefaultMessageNotificationLevels + * The value set for a guild's default message notifications. + * @property {ExplicitContentFilterLevel} ExplicitContentFilterLevels + * The value set for the explicit content filter levels for a guild. + * @property {InteractionResponseType} InteractionResponseTypes The type of an interaction response. + * @property {InteractionType} InteractionTypes The type of an {@link Interaction} object. + * @property {MembershipState} MembershipStates The value set for a team members's membership state. + * @property {MessageButtonStyle} MessageButtonStyles The style of a message button. + * @property {MessageComponentType} MessageComponentTypes The type of a message component. + * @property {MFALevel} MFALevels The required MFA level for a guild. + * @property {NSFWLevel} NSFWLevels NSFW level of a guild. + * @property {OverwriteType} OverwriteTypes An overwrite type. + * @property {PartialType} PartialTypes The type of Structure allowed to be a partial. + * @property {PremiumTier} PremiumTiers The premium tier (Server Boost level) of a guild. + * @property {PrivacyLevel} PrivacyLevels Privacy level of a {@link StageInstance} object. + * @property {Status} Status The available statuses of the client. + * @property {StickerFormatType} StickerFormatTypes The value set for a sticker's format type. + * @property {StickerType} StickerTypes The value set for a sticker's type. + * @property {VerificationLevel} VerificationLevels The value set for the verification levels for a guild. + * @property {WebhookType} WebhookTypes The value set for a webhook's type. + * @property {WSEventType} WSEvents The type of a websocket message event. + */