seyfert
Version:
The most advanced framework for discord bots
169 lines (168 loc) • 6.45 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Spacing = exports.ChannelFlags = exports.SelectMenuDefaultValueType = exports.TextInputStyle = exports.ButtonStyle = exports.ComponentType = void 0;
/**
* https://discord.com/developers/docs/interactions/message-components#component-object-component-types
*/
var ComponentType;
(function (ComponentType) {
/**
* Action Row component
*/
ComponentType[ComponentType["ActionRow"] = 1] = "ActionRow";
/**
* Button component
*/
ComponentType[ComponentType["Button"] = 2] = "Button";
/**
* Select menu for picking from defined text options
*/
ComponentType[ComponentType["StringSelect"] = 3] = "StringSelect";
/**
* Text Input component
*/
ComponentType[ComponentType["TextInput"] = 4] = "TextInput";
/**
* Select menu for users
*/
ComponentType[ComponentType["UserSelect"] = 5] = "UserSelect";
/**
* Select menu for roles
*/
ComponentType[ComponentType["RoleSelect"] = 6] = "RoleSelect";
/**
* Select menu for users and roles
*/
ComponentType[ComponentType["MentionableSelect"] = 7] = "MentionableSelect";
/**
* Select menu for channels
*/
ComponentType[ComponentType["ChannelSelect"] = 8] = "ChannelSelect";
/**
* Section for accessory
*/
ComponentType[ComponentType["Section"] = 9] = "Section";
/**
* Text display component
*/
ComponentType[ComponentType["TextDisplay"] = 10] = "TextDisplay";
/**
* Thumbnail component
*/
ComponentType[ComponentType["Thumbnail"] = 11] = "Thumbnail";
/**
* Media Gallery component
*/
ComponentType[ComponentType["MediaGallery"] = 12] = "MediaGallery";
/**
* File component
*/
ComponentType[ComponentType["File"] = 13] = "File";
/**
* Separator component
*/
ComponentType[ComponentType["Separator"] = 14] = "Separator";
/**
* Container component
*/
ComponentType[ComponentType["Container"] = 17] = "Container";
/**
* Label component
*/
ComponentType[ComponentType["Label"] = 18] = "Label";
/**
* File upload component
*/
ComponentType[ComponentType["FileUpload"] = 19] = "FileUpload";
/**
* Single-choice set of options
*/
ComponentType[ComponentType["RadioGroup"] = 21] = "RadioGroup";
/**
* Multi-selectable group of checkboxes
*/
ComponentType[ComponentType["CheckboxGroup"] = 22] = "CheckboxGroup";
/**
* Single checkbox for yes/no choice
*/
ComponentType[ComponentType["Checkbox"] = 23] = "Checkbox";
})(ComponentType || (exports.ComponentType = ComponentType = {}));
/**
* https://discord.com/developers/docs/interactions/message-components#button-object-button-styles
*/
var ButtonStyle;
(function (ButtonStyle) {
ButtonStyle[ButtonStyle["Primary"] = 1] = "Primary";
ButtonStyle[ButtonStyle["Secondary"] = 2] = "Secondary";
ButtonStyle[ButtonStyle["Success"] = 3] = "Success";
ButtonStyle[ButtonStyle["Danger"] = 4] = "Danger";
ButtonStyle[ButtonStyle["Link"] = 5] = "Link";
ButtonStyle[ButtonStyle["Premium"] = 6] = "Premium";
})(ButtonStyle || (exports.ButtonStyle = ButtonStyle = {}));
/**
* https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-styles
*/
var TextInputStyle;
(function (TextInputStyle) {
TextInputStyle[TextInputStyle["Short"] = 1] = "Short";
TextInputStyle[TextInputStyle["Paragraph"] = 2] = "Paragraph";
})(TextInputStyle || (exports.TextInputStyle = TextInputStyle = {}));
/**
* https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-default-value-structure
*/
var SelectMenuDefaultValueType;
(function (SelectMenuDefaultValueType) {
SelectMenuDefaultValueType["Channel"] = "channel";
SelectMenuDefaultValueType["Role"] = "role";
SelectMenuDefaultValueType["User"] = "user";
})(SelectMenuDefaultValueType || (exports.SelectMenuDefaultValueType = SelectMenuDefaultValueType = {}));
/**
* https://discord.com/developers/docs/resources/channel#channel-object-channel-flags
*/
var ChannelFlags;
(function (ChannelFlags) {
/**
* @unstable This channel flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*/
ChannelFlags[ChannelFlags["GuildFeedRemoved"] = 1] = "GuildFeedRemoved";
/**
* This thread is pinned to the top of its parent forum channel
*/
ChannelFlags[ChannelFlags["Pinned"] = 2] = "Pinned";
/**
* @unstable This channel flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*/
ChannelFlags[ChannelFlags["ActiveChannelsRemoved"] = 4] = "ActiveChannelsRemoved";
/**
* Whether a tag is required to be specified when creating a thread in a forum channel.
* Tags are specified in the `applied_tags` field
*/
ChannelFlags[ChannelFlags["RequireTag"] = 16] = "RequireTag";
/**
* @unstable This channel flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*/
ChannelFlags[ChannelFlags["IsSpam"] = 32] = "IsSpam";
/**
* @unstable This channel flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*/
ChannelFlags[ChannelFlags["IsGuildResourceChannel"] = 128] = "IsGuildResourceChannel";
/**
* @unstable This channel flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*/
ChannelFlags[ChannelFlags["ClydeAI"] = 256] = "ClydeAI";
/**
* @unstable This channel flag is currently not documented by Discord but has a known value which we will try to keep up to date.
*/
ChannelFlags[ChannelFlags["IsScheduledForDeletion"] = 512] = "IsScheduledForDeletion";
/**
* Whether media download options are hidden.
*/
ChannelFlags[ChannelFlags["HideMediaDownloadOptions"] = 32768] = "HideMediaDownloadOptions";
})(ChannelFlags || (exports.ChannelFlags = ChannelFlags = {}));
var Spacing;
(function (Spacing) {
/** For small padding */
Spacing[Spacing["Small"] = 1] = "Small";
/** For large padding */
Spacing[Spacing["Large"] = 2] = "Large";
})(Spacing || (exports.Spacing = Spacing = {}));