199 lines
3.6 KiB
TypeScript
199 lines
3.6 KiB
TypeScript
// These are enums that are used in the typings file but do not exist as actual exported values. To prevent them from
|
|
// showing up in an editor, they are imported from here instead of exporting them there directly.
|
|
|
|
export const enum ActivityTypes {
|
|
PLAYING = 0,
|
|
STREAMING = 1,
|
|
LISTENING = 2,
|
|
WATCHING = 3,
|
|
CUSTOM = 4,
|
|
COMPETING = 5,
|
|
}
|
|
|
|
export const enum ApplicationCommandTypes {
|
|
CHAT_INPUT = 1,
|
|
USER = 2,
|
|
MESSAGE = 3,
|
|
}
|
|
|
|
export const enum ApplicationCommandOptionTypes {
|
|
SUB_COMMAND = 1,
|
|
SUB_COMMAND_GROUP = 2,
|
|
STRING = 3,
|
|
INTEGER = 4,
|
|
BOOLEAN = 5,
|
|
USER = 6,
|
|
CHANNEL = 7,
|
|
ROLE = 8,
|
|
MENTIONABLE = 9,
|
|
NUMBER = 10,
|
|
}
|
|
|
|
export const enum ApplicationCommandPermissionTypes {
|
|
ROLE = 1,
|
|
USER = 2,
|
|
}
|
|
|
|
export const enum ChannelTypes {
|
|
GUILD_TEXT = 0,
|
|
DM = 1,
|
|
GUILD_VOICE = 2,
|
|
GROUP_DM = 3,
|
|
GUILD_CATEGORY = 4,
|
|
GUILD_NEWS = 5,
|
|
GUILD_STORE = 6,
|
|
UNKNOWN = 7,
|
|
GUILD_NEWS_THREAD = 10,
|
|
GUILD_PUBLIC_THREAD = 11,
|
|
GUILD_PRIVATE_THREAD = 12,
|
|
GUILD_STAGE_VOICE = 13,
|
|
}
|
|
|
|
export const enum MessageTypes {
|
|
DEFAULT,
|
|
RECIPIENT_ADD,
|
|
RECIPIENT_REMOVE,
|
|
CALL,
|
|
CHANNEL_NAME_CHANGE,
|
|
CHANNEL_ICON_CHANGE,
|
|
CHANNEL_PINNED_MESSAGE,
|
|
GUILD_MEMBER_JOIN,
|
|
USER_PREMIUM_GUILD_SUBSCRIPTION,
|
|
USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1,
|
|
USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2,
|
|
USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3,
|
|
CHANNEL_FOLLOW_ADD,
|
|
GUILD_DISCOVERY_DISQUALIFIED = 14,
|
|
GUILD_DISCOVERY_REQUALIFIED,
|
|
GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING,
|
|
GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING,
|
|
THREAD_CREATED,
|
|
REPLY,
|
|
APPLICATION_COMMAND,
|
|
THREAD_STARTER_MESSAGE,
|
|
GUILD_INVITE_REMINDER,
|
|
CONTEXT_MENU_COMMAND,
|
|
}
|
|
|
|
export const enum DefaultMessageNotificationLevels {
|
|
ALL_MESSAGES = 0,
|
|
ONLY_MENTIONS = 1,
|
|
}
|
|
|
|
export const enum ExplicitContentFilterLevels {
|
|
DISABLED = 0,
|
|
MEMBERS_WITHOUT_ROLES = 1,
|
|
ALL_MEMBERS = 2,
|
|
}
|
|
|
|
export const enum GuildScheduledEventEntityTypes {
|
|
STAGE_INSTANCE = 1,
|
|
VOICE = 2,
|
|
EXTERNAL = 3,
|
|
}
|
|
|
|
export const enum GuildScheduledEventPrivacyLevels {
|
|
GUILD_ONLY = 2,
|
|
}
|
|
|
|
export const enum GuildScheduledEventStatuses {
|
|
SCHEDULED = 1,
|
|
ACTIVE = 2,
|
|
COMPLETED = 3,
|
|
CANCELED = 4,
|
|
}
|
|
|
|
export const enum InteractionResponseTypes {
|
|
PONG = 1,
|
|
CHANNEL_MESSAGE_WITH_SOURCE = 4,
|
|
DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE = 5,
|
|
DEFERRED_MESSAGE_UPDATE = 6,
|
|
UPDATE_MESSAGE = 7,
|
|
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT = 8,
|
|
}
|
|
|
|
export const enum InteractionTypes {
|
|
PING = 1,
|
|
APPLICATION_COMMAND = 2,
|
|
MESSAGE_COMPONENT = 3,
|
|
APPLICATION_COMMAND_AUTOCOMPLETE = 4,
|
|
}
|
|
|
|
export const enum InviteTargetType {
|
|
STREAM = 1,
|
|
EMBEDDED_APPLICATION = 2,
|
|
}
|
|
|
|
export const enum MembershipStates {
|
|
INVITED = 1,
|
|
ACCEPTED = 2,
|
|
}
|
|
|
|
export const enum MessageButtonStyles {
|
|
PRIMARY = 1,
|
|
SECONDARY = 2,
|
|
SUCCESS = 3,
|
|
DANGER = 4,
|
|
LINK = 5,
|
|
}
|
|
|
|
export const enum MessageComponentTypes {
|
|
ACTION_ROW = 1,
|
|
BUTTON = 2,
|
|
SELECT_MENU = 3,
|
|
}
|
|
|
|
export const enum MFALevels {
|
|
NONE = 0,
|
|
ELEVATED = 1,
|
|
}
|
|
|
|
export const enum NSFWLevels {
|
|
DEFAULT = 0,
|
|
EXPLICIT = 1,
|
|
SAFE = 2,
|
|
AGE_RESTRICTED = 3,
|
|
}
|
|
|
|
export const enum OverwriteTypes {
|
|
role = 0,
|
|
member = 1,
|
|
}
|
|
|
|
export const enum PremiumTiers {
|
|
NONE = 0,
|
|
TIER_1 = 1,
|
|
TIER_2 = 2,
|
|
TIER_3 = 3,
|
|
}
|
|
|
|
export const enum PrivacyLevels {
|
|
PUBLIC = 1,
|
|
GUILD_ONLY = 2,
|
|
}
|
|
|
|
export const enum StickerFormatTypes {
|
|
PNG = 1,
|
|
APNG = 2,
|
|
LOTTIE = 3,
|
|
}
|
|
|
|
export const enum StickerTypes {
|
|
STANDARD = 1,
|
|
GUILD = 2,
|
|
}
|
|
|
|
export const enum VerificationLevels {
|
|
NONE = 0,
|
|
LOW = 1,
|
|
MEDIUM = 2,
|
|
HIGH = 3,
|
|
VERY_HIGH = 4,
|
|
}
|
|
|
|
export const enum WebhookTypes {
|
|
Incoming = 1,
|
|
'Channel Follower' = 2,
|
|
Application = 3,
|
|
}
|