Options
All
  • Public
  • Public/Protected
  • All
Menu

Detritus Client

Index

Modules

Enumerations

Clients Classes

Collections Classes

Command Classes

Handler Classes

Handlers Classes

Media Classes

Other Classes

Structure Classes

Utils Classes

Collection Options Interfaces

Command Interfaces

Command Options Interfaces

Media Options Interfaces

Media Opus Interfaces

Other Interfaces

Command Type aliases

Handlers Type aliases

Other Type aliases

Variables

Functions

Command Type aliases

CommandCallbackBefore

CommandCallbackBefore: function

Type declaration

    • (context: Context): Promise<boolean> | boolean
    • Parameters

      Returns Promise<boolean> | boolean

CommandCallbackBeforeRun

CommandCallbackBeforeRun: function

Type declaration

CommandCallbackCancel

CommandCallbackCancel: function

Type declaration

CommandCallbackCancelRun

CommandCallbackCancelRun: function

Type declaration

CommandCallbackError

CommandCallbackError: function

Type declaration

CommandCallbackPermissionsFail

CommandCallbackPermissionsFail: function

Type declaration

CommandCallbackRatelimit

CommandCallbackRatelimit: function

Type declaration

    • (context: Context, ratelimits: Array<object>, metadata: object): Promise<any> | any
    • Parameters

      • context: Context
      • ratelimits: Array<object>
      • metadata: object
        • global: boolean
        • now: number

      Returns Promise<any> | any

CommandCallbackRun

CommandCallbackRun: function

Type declaration

CommandCallbackRunError

CommandCallbackRunError: function

Type declaration

CommandCallbackSuccess

CommandCallbackSuccess: function

Type declaration

CommandCallbackTypeError

CommandCallbackTypeError: function

Type declaration

ParsedArgs

ParsedArgs: object | any

ParsedErrors

ParsedErrors: object | any

Handlers Type aliases

GatewayDispatchHandlerFunction

GatewayDispatchHandlerFunction: function

Gateway Dispatch Handler Function

Type declaration

    • (data: any): void
    • Parameters

      • data: any

      Returns void

MediaGatewayOpHandlerFunction

MediaGatewayOpHandlerFunction: function

Media Gateway Op Code Handler Function

Type declaration

    • (data: any): void
    • Parameters

      • data: any

      Returns void

Other Type aliases

ArgumentConverter

ArgumentConverter: function

Type declaration

    • (value: string, context: Context): Promise<any> | any
    • Parameters

      Returns Promise<any> | any

ArgumentDefault

ArgumentDefault: function | any

ArgumentType

ArgumentType: ArgumentConverter | Boolean | Number | String | CommandArgumentTypes

Channel

CommandClientCommandCheck

CommandClientCommandCheck: function

Type declaration

    • Parameters

      Returns boolean | Promise<boolean>

CommandClientMessageCheck

CommandClientMessageCheck: function

Type declaration

    • (context: Context): boolean | Promise<boolean>
    • Parameters

      Returns boolean | Promise<boolean>

CommandClientPrefixCheck

CommandClientPrefixCheck: function

Type declaration

CommandClientPrefixes

CommandClientPrefixes: Array<string> | BaseSet<string> | Set<string> | string

EditOrCreate

EditOrCreate: CreateMessage & EditMessage

FailedPermissions

FailedPermissions: Array<Permissions | number>

PermissionChecks

PermissionChecks: Array<number | string> | number | string

Snowflake

Snowflake: number | string

UrlQuery

UrlQuery: object

Type declaration

  • [key: string]: any

Variables

Const AuditLogActionTypes

AuditLogActionTypes: object = Tools.normalize({ALL: null,CREATE: null,UPDATE: null,DELETE: null,})

Type declaration

Const AuditLogSubtargetTypes

AuditLogSubtargetTypes: object = Object.freeze({USER: 'member',ROLE: 'role',})

Type declaration

Const AuditLogTargetTypes

AuditLogTargetTypes: object = Tools.normalize({ALL: null,CHANNEL: null,CHANNEL_OVERWRITE: null,EMOJI: null,GUILD: null,INTEGRATION: null,INVITE: null,ROLE: null,UNKNOWN: null,USER: null,WEBHOOK: null,})

Type declaration

Const COMMAND_RATELIMIT_TYPES

COMMAND_RATELIMIT_TYPES: ReadonlyArray<string> = Object.freeze(Object.values(CommandRatelimitTypes))

Const CTL

CTL: object = Object.freeze({BITRATE: 4002,FEC: 4012,PLP: 4014,})

Type declaration

Const CommandErrors

CommandErrors: object = Object.freeze({})

Type declaration

Const DEFAULT_GROUP_DM_AVATARS

DEFAULT_GROUP_DM_AVATARS: ReadonlyArray<string> = Object.freeze(['861ab526aa1fabb04c6b7da8074e3e21','b8912961ea6ab32f0655d583bbc26b4f','773616c3c8a7e21f8a774eb0d5625436','f810dc5fedb7175c43a3389aa890534f','e1fb24a120bdd003a84e021b16ec3bef','b3150d5cef84b9e82128a1131684f287','485a854d5171c8dc98088041626e6fea','1531b79c2f2927945582023e1edaaa11',])

Const DEFAULT_MAX_MEMBERS

DEFAULT_MAX_MEMBERS: 250000 = 250000

Const DEFAULT_MAX_PRESENCES

DEFAULT_MAX_PRESENCES: 5000 = 5000

Const DEFAULT_MAX_VIDEO_CHANNEL_USERS

DEFAULT_MAX_VIDEO_CHANNEL_USERS: 25 = 25

Const DEPENDENCY_TYPES

DEPENDENCY_TYPES: Array<string> = Object.values(DependencyTypes)

Const DependencyTypes

DependencyTypes: object = Object.freeze({NODE_OPUS: 'node-opus',OPUSSCRIPT: 'opusscript',})

Type declaration

Const DetritusKeys

DetritusKeys: object = Object.freeze({[DiscordKeys.ACCESS_TYPE]: 'accessType',[DiscordKeys.ACCOUNT]: 'account',[DiscordKeys.ACTION_TYPE]: 'actionType',[DiscordKeys.ACTIVE]: 'active',[DiscordKeys.ACTIVITIES]: 'activities',[DiscordKeys.ACTIVITY]: 'activity',[DiscordKeys.AFK_CHANNEL_ID]: 'afkChannelId',[DiscordKeys.AFK_TIMEOUT]: 'afkTimeout',[DiscordKeys.ALIASES]: 'aliases',[DiscordKeys.ALLOW]: 'allow',[DiscordKeys.ANALYTICS_TOKEN]: 'analyticsToken',[DiscordKeys.ANIMATED]: 'animated',[DiscordKeys.APPLICATION]: 'application',[DiscordKeys.APPLICATION_ID]: 'applicationId',[DiscordKeys.APPROXIMATE_MEMBER_COUNT]: 'approximateMemberCount',[DiscordKeys.APPROXIMATE_PRESENCE_COUNT]: 'approximatePresenceCount',[DiscordKeys.ASSETS]: 'assets',[DiscordKeys.ATTACHMENTS]: 'attachments',[DiscordKeys.AUTHOR]: 'author',[DiscordKeys.AVAILABLE]: 'available',[DiscordKeys.AVATAR]: 'avatar',[DiscordKeys.BANNER]: 'banner',[DiscordKeys.BITRATE]: 'bitrate',[DiscordKeys.BOT]: 'bot',[DiscordKeys.BOT_PUBLIC]: 'botPublic',[DiscordKeys.BOT_REQUIRE_CODE_GRANT]: 'botRequireCodeGrant',[DiscordKeys.BOX_ART]: 'boxArt',[DiscordKeys.CALL]: 'call',[DiscordKeys.CAROUSEL_ITEMS]: 'carouselItems',[DiscordKeys.CATEGORY]: 'category',[DiscordKeys.CHANGES]: 'changes',[DiscordKeys.CHANNEL]: 'channel',[DiscordKeys.CHANNELS]: 'channels',[DiscordKeys.CHANNEL_ID]: 'channelId',[DiscordKeys.CLIENT]: 'client',[DiscordKeys.CLIENT_INFO]: 'clientInfo',[DiscordKeys.CLIENT_STATUS]: 'clientStatus',[DiscordKeys.CODE]: 'code',[DiscordKeys.COLOR]: 'color',[DiscordKeys.CONNECTED_ACCOUNTS]: 'connectedAccounts',[DiscordKeys.CONTENT]: 'content',[DiscordKeys.CONTENT_RATING]: 'contentRating',[DiscordKeys.CONTENT_RATING_AGENCY]: 'contentRatingAgency',[DiscordKeys.COUNT]: 'count',[DiscordKeys.COVER_IMAGE]: 'coverImage',[DiscordKeys.CREATED_AT]: 'createdAt',[DiscordKeys.CREATOR]: 'creator',[DiscordKeys.CREATOR_ID]: 'creatorId',[DiscordKeys.CURRENCY]: 'currency',[DiscordKeys.CUSTOM]: 'custom',[DiscordKeys.DEAF]: 'deaf',[DiscordKeys.DEFAULT_MESSAGE_NOTIFICATIONS]: 'defaultMessageNotifications',[DiscordKeys.DELETE_MEMBER_DAYS]: 'deleteMemberDays',[DiscordKeys.DENY]: 'deny',[DiscordKeys.DEPENDENT_SKU_ID]: 'dependentSkuId',[DiscordKeys.DEPRECATED]: 'deprecated',[DiscordKeys.DESCRIPTION]: 'description',[DiscordKeys.DESKTOP]: 'desktop',[DiscordKeys.DETAILS]: 'details',[DiscordKeys.DEVELOPERS]: 'developers',[DiscordKeys.DISCOVERY_SPLASH]: 'discoverySplash',[DiscordKeys.DISCRIMINATOR]: 'discriminator',[DiscordKeys.DISTRIBUTOR]: 'distributor',[DiscordKeys.EDITED_TIMESTAMP]: 'editedTimestamp',[DiscordKeys.EMAIL]: 'email',[DiscordKeys.EMBEDS]: 'embeds',[DiscordKeys.EMBED_CHANNEL_ID]: 'embedChannelId',[DiscordKeys.EMBED_ENABLED]: 'embedEnabled',[DiscordKeys.EMOJI]: 'emoji',[DiscordKeys.EMOJIS]: 'emojis',[DiscordKeys.ENABLED]: 'enabled',[DiscordKeys.END]: 'end',[DiscordKeys.ENDED]: 'ended',[DiscordKeys.ENDED_TIMESTAMP]: 'endedTimestamp',[DiscordKeys.ENTITLEMENT_BRANCH_ID]: 'entitlementBranchId',[DiscordKeys.EULA_ID]: 'eulaId',[DiscordKeys.EXECUTABLES]: 'executables',[DiscordKeys.EXPIRES_AT]: 'expiresAt',[DiscordKeys.EXPIRE_BEHAVIOR]: 'expireBehavior',[DiscordKeys.EXPIRE_GRACE_PERIOD]: 'expireGracePeriod',[DiscordKeys.EXPLICIT_CONTENT_FILTER]: 'explicitContentFilter',[DiscordKeys.FEATURES]: 'features',[DiscordKeys.FIELDS]: 'fields',[DiscordKeys.FLAGS]: 'flags',[DiscordKeys.FILENAME]: 'filename',[DiscordKeys.FOOTER]: 'footer',[DiscordKeys.FRIEND_SYNC]: 'friendSync',[DiscordKeys.GAME]: 'game',[DiscordKeys.GAME_ID]: 'gameId',[DiscordKeys.GENRES]: 'genres',[DiscordKeys.GUILD]: 'guild',[DiscordKeys.GUILD_ID]: 'guildId',[DiscordKeys.GUILD_IDS]: 'guildIds',[DiscordKeys.HEADER_BACKGROUND]: 'headerBackground',[DiscordKeys.HEADER_LOGO_DARK_THEME]: 'headerLogoDarkTheme',[DiscordKeys.HEADER_LOGO_LIGHT_THEME]: 'headerLogoLightTheme',[DiscordKeys.HEIGHT]: 'height',[DiscordKeys.HERO_BACKGROUND]: 'heroBackground',[DiscordKeys.HERO_VIDEO]: 'heroVideo',[DiscordKeys.HOIST]: 'hoist',[DiscordKeys.HOISTED_ROLE]: 'hoistedRole',[DiscordKeys.HOOK]: 'hook',[DiscordKeys.ICON]: 'icon',[DiscordKeys.ICON_URL]: 'iconUrl',[DiscordKeys.ID]: 'id',[DiscordKeys.IMAGE]: 'image',[DiscordKeys.INLINE]: 'inline',[DiscordKeys.INSTANCE]: 'instance',[DiscordKeys.INTEGRATIONS]: 'integrations',[DiscordKeys.INTERVAL]: 'interval',[DiscordKeys.INTERVAL_COUNT]: 'intervalCount',[DiscordKeys.INVITER]: 'inviter',[DiscordKeys.IS_DIRTY]: 'isDirty',[DiscordKeys.IS_PARTIAL]: 'isPartial',[DiscordKeys.JOIN]: 'join',[DiscordKeys.JOINED_AT]: 'joinedAt',[DiscordKeys.KEY]: 'key',[DiscordKeys.LARGE]: 'large',[DiscordKeys.LARGE_IMAGE]: 'largeImage',[DiscordKeys.LARGE_TEXT]: 'largeText',[DiscordKeys.LAST_MESSAGE_ID]: 'lastMessageId',[DiscordKeys.LAST_MODIFIED]: 'lastModified',[DiscordKeys.LAST_PIN_TIMESTAMP]: 'lastPinTimestamp',[DiscordKeys.LAZY]: 'lazy',[DiscordKeys.LEGAL_NOTICE]: 'legalNotice',[DiscordKeys.LOCALE]: 'locale',[DiscordKeys.LOCALES]: 'locales',[DiscordKeys.MANAGED]: 'managed',[DiscordKeys.MANIFEST_LABELS]: 'manifestLabels',[DiscordKeys.MATCH]: 'match',[DiscordKeys.MAX_AGE]: 'maxAge',[DiscordKeys.MAX_MEMBERS]: 'maxMembers',[DiscordKeys.MAX_PRESENCES]: 'maxPresences',[DiscordKeys.MAX_USES]: 'maxUses',[DiscordKeys.MAX_VIDEO_CHANNEL_USERS]: 'maxVideoChannelUsers',[DiscordKeys.ME]: 'me',[DiscordKeys.MEMBER]: 'member',[DiscordKeys.MEMBERS]: 'members',[DiscordKeys.MEMBERSHIP_STATE]: 'membershipState',[DiscordKeys.MEMBERS_REMOVED]: 'membersRemoved',[DiscordKeys.MEMBER_COUNT]: 'memberCount',[DiscordKeys.MENTIONABLE]: 'mentionable',[DiscordKeys.MENTIONS]: 'mentions',[DiscordKeys.MENTION_CHANNELS]: 'mentionChannels',[DiscordKeys.MENTION_EVERYONE]: 'mentionEveryone',[DiscordKeys.MENTION_ROLES]: 'mentionRoles',[DiscordKeys.MESSAGE_ID]: 'messageId',[DiscordKeys.MESSAGE_REFERENCE]: 'messageReference',[DiscordKeys.METADATA]: 'metadata',[DiscordKeys.MFA_ENABLED]: 'mfaEnabled',[DiscordKeys.MFA_LEVEL]: 'mfaLevel',[DiscordKeys.MIME_TYPE]: 'mimeType',[DiscordKeys.MOBILE]: 'mobile',[DiscordKeys.MUTE]: 'mute',[DiscordKeys.MUTUAL_GUILDS]: 'mutualGuilds',[DiscordKeys.NAME]: 'name',[DiscordKeys.NEW_VALUE]: 'newValue',[DiscordKeys.NICK]: 'nick',[DiscordKeys.NICKS]: 'nicks',[DiscordKeys.NONCE]: 'nonce',[DiscordKeys.NSFW]: 'nsfw',[DiscordKeys.OLD_VALUE]: 'oldValue',[DiscordKeys.OPTIMAL]: 'optimal',[DiscordKeys.OPTIONS]: 'options',[DiscordKeys.OS]: 'os',[DiscordKeys.OVERLAY]: 'overlay',[DiscordKeys.OVERLAY_COMPATIBILITY_HOOK]: 'overlayCompatibilityHook',[DiscordKeys.OWNER]: 'owner',[DiscordKeys.OWNER_ID]: 'ownerId',[DiscordKeys.OWNER_USER_ID]: 'ownerUserId',[DiscordKeys.PARENT_ID]: 'parentId',[DiscordKeys.PARTICIPANTS]: 'participants',[DiscordKeys.PARTY]: 'party',[DiscordKeys.PARTY_ID]: 'partyId',[DiscordKeys.PAYOUT_ACCOUNT_STATUS]: 'payoutAccountStatus',[DiscordKeys.PERMISSIONS]: 'permissions',[DiscordKeys.PERMISSIONS_NEW]: 'permissionsNew',[DiscordKeys.PERMISSION_OVERWRITES]: 'permissionOverwrites',[DiscordKeys.PHONE]: 'phone',[DiscordKeys.PINNED]: 'pinned',[DiscordKeys.PLATFORM]: 'platform',[DiscordKeys.POSITION]: 'position',[DiscordKeys.PREFERRED_LOCALE]: 'preferredLocale',[DiscordKeys.PREMIUM]: 'premium',[DiscordKeys.PREMIUM_GUILD_SINCE]: 'premiumGuildSince',[DiscordKeys.PREMIUM_SINCE]: 'premiumSince',[DiscordKeys.PREMIUM_SUBSCRIPTION_COUNT]: 'premiumSubscriptionCount',[DiscordKeys.PREMIUM_TIER]: 'premiumTier',[DiscordKeys.PREMIUM_TYPE]: 'premiumType',[DiscordKeys.PRESENCES]: 'presences',[DiscordKeys.PREVIEW_VIDEO]: 'previewVideo',[DiscordKeys.PRICE]: 'price',[DiscordKeys.PRIMARY_SKU_ID]: 'primarySkuId',[DiscordKeys.PROVIDER]: 'provider',[DiscordKeys.PROXY_ICON_URL]: 'proxyIconUrl',[DiscordKeys.PROXY_URL]: 'proxyUrl',[DiscordKeys.PUBLIC_FLAGS]: 'publicFlags',[DiscordKeys.PUBLIC_UPDATES_CHANNEL_ID]: 'publicUpdatesChannelId',[DiscordKeys.PUBLISHERS]: 'publishers',[DiscordKeys.RATE_LIMIT_PER_USER]: 'rateLimitPerUser',[DiscordKeys.REACTIONS]: 'reactions',[DiscordKeys.REASON]: 'reason',[DiscordKeys.RECIPIENTS]: 'recipients',[DiscordKeys.REDEEMED]: 'redeemed',[DiscordKeys.REDIRECT_URIS]: 'redirectUris',[DiscordKeys.REFERENCE_ID]: 'referenceId',[DiscordKeys.REGION]: 'region',[DiscordKeys.RELEASE_DATE]: 'releaseDate',[DiscordKeys.REQUIRE_COLONS]: 'requireColons',[DiscordKeys.REVOKED]: 'revoked',[DiscordKeys.RINGING]: 'ringing',[DiscordKeys.ROLES]: 'roles',[DiscordKeys.ROLE_ID]: 'roleId',[DiscordKeys.RPC_APPLICATION_STATE]: 'rpcApplicationState',[DiscordKeys.RPC_ORIGINS]: 'rpcOrigins',[DiscordKeys.RULES_CHANNEL_ID]: 'rulesChannelId',[DiscordKeys.SECRET]: 'secret',[DiscordKeys.SECRETS]: 'secrets',[DiscordKeys.SELF_DEAF]: 'selfDeaf',[DiscordKeys.SELF_MUTE]: 'selfMute',[DiscordKeys.SELF_STREAM]: 'selfStream',[DiscordKeys.SELF_VIDEO]: 'selfVideo',[DiscordKeys.SERIALIZED_SOURCE_GUILD]: 'serializedSourceGuild',[DiscordKeys.SESSION_ID]: 'sessionId',[DiscordKeys.SHOW_ACTIVITY]: 'showActivity',[DiscordKeys.SHOW_AGE_GATE]: 'showAgeGate',[DiscordKeys.SIZE]: 'size',[DiscordKeys.SKU]: 'sku',[DiscordKeys.SKU_ID]: 'skuId',[DiscordKeys.SLUG]: 'slug',[DiscordKeys.SMALL_IMAGE]: 'smallImage',[DiscordKeys.SMALL_TEXT]: 'smallText',[DiscordKeys.SOURCE_GUILD_ID]: 'sourceGuildId',[DiscordKeys.SPECTATE]: 'spectate',[DiscordKeys.SPLASH]: 'splash',[DiscordKeys.START]: 'start',[DiscordKeys.STARTED]: 'started',[DiscordKeys.STATE]: 'state',[DiscordKeys.STATUS]: 'status',[DiscordKeys.STOPPED]: 'stopped',[DiscordKeys.STORE_APPLICATION_STATE]: 'storeApplicationState',[DiscordKeys.STORE_LISTING]: 'storeListing',[DiscordKeys.SUBSCRIPTION_PLAN]: 'subscriptionPlan',[DiscordKeys.SUBSCRIPTION_PLAN_ID]: 'subscriptionPlanId',[DiscordKeys.SUBTARGET]: 'subtarget',[DiscordKeys.SUMMARY]: 'summary',[DiscordKeys.SUPPRESS]: 'suppress',[DiscordKeys.SYNCED_AT]: 'syncedAt',[DiscordKeys.SYNCING]: 'syncing',[DiscordKeys.SYNC_ID]: 'syncId',[DiscordKeys.SYSTEM]: 'system',[DiscordKeys.SYSTEM_CHANNEL_FLAGS]: 'systemChannelFlags',[DiscordKeys.SYSTEM_CHANNEL_ID]: 'systemChannelId',[DiscordKeys.SYSTEM_REQUIREMENTS]: 'systemRequirements',[DiscordKeys.TAGLINE]: 'tagline',[DiscordKeys.TAGS]: 'tags',[DiscordKeys.TARGET]: 'target',[DiscordKeys.TARGET_ID]: 'targetId',[DiscordKeys.TARGET_USER]: 'targetUser',[DiscordKeys.TARGET_USER_TYPE]: 'targetUserType',[DiscordKeys.TAX_INCLUSIVE]: 'taxInclusive',[DiscordKeys.TEAM]: 'team',[DiscordKeys.TEAM_ID]: 'teamId',[DiscordKeys.TEMPORARY]: 'temporary',[DiscordKeys.TEXT]: 'text',[DiscordKeys.THIRD_PARTY_SKUS]: 'thirdPartySkus',[DiscordKeys.THUMBNAIL]: 'thumbnail',[DiscordKeys.TIMESTAMP]: 'timestamp',[DiscordKeys.TIMESTAMPS]: 'timestamps',[DiscordKeys.TITLE]: 'title',[DiscordKeys.TOKEN]: 'token',[DiscordKeys.TOPIC]: 'topic',[DiscordKeys.TTS]: 'tts',[DiscordKeys.TYPE]: 'type',[DiscordKeys.UNAVAILABLE]: 'unavailable',[DiscordKeys.UPDATED_AT]: 'updatedAt',[DiscordKeys.URL]: 'url',[DiscordKeys.USAGE_COUNT]: 'usageCount',[DiscordKeys.USER]: 'user',[DiscordKeys.USERNAME]: 'username',[DiscordKeys.USER_ID]: 'userId',[DiscordKeys.USER_LIMIT]: 'userLimit',[DiscordKeys.USES]: 'uses',[DiscordKeys.VALUE]: 'value',[DiscordKeys.VANITY_URL_CODE]: 'vanityUrlCode',[DiscordKeys.VERIFICATION_LEVEL]: 'verificationLevel',[DiscordKeys.VERIFIED]: 'verified',[DiscordKeys.VERIFY_KEY]: 'verifyKey',[DiscordKeys.VERSION]: 'version',[DiscordKeys.VIDEO]: 'video',[DiscordKeys.VIP]: 'vip',[DiscordKeys.VISIBILITY]: 'visibility',[DiscordKeys.VOICE_STATES]: 'voiceStates',[DiscordKeys.WEB]: 'web',[DiscordKeys.WEBHOOK_ID]: 'webhookId',[DiscordKeys.WIDGET_CHANNEL_ID]: 'widgetChannelId',[DiscordKeys.WIDGET_ENABLED]: 'widgetEnabled',[DiscordKeys.WIDTH]: 'width',[DiscordKeys.YOUTUBE_TRAILER_VIDEO_ID]: 'youtubeTrailerVideoId',})

Type declaration

Const DiscordKeys

DiscordKeys: object = Object.freeze({ACCESS_TYPE: 'access_type',ACCOUNT: 'account',ACTION_TYPE: 'action_type',ACTIVE: 'active',ACTIVITIES: 'activities',ACTIVITY: 'activity',AFK_CHANNEL_ID: 'afk_channel_id',AFK_TIMEOUT: 'afk_timeout',ALIASES: 'aliases',ALLOW: 'allow',ANALYTICS_TOKEN: 'analytics_token',ANIMATED: 'animated',APPLICATION: 'application',APPLICATION_ID: 'application_id',APPROXIMATE_MEMBER_COUNT: 'approximate_member_count',APPROXIMATE_PRESENCE_COUNT: 'approximate_presence_count',ASSETS: 'assets',ATTACHMENTS: 'attachments',AUTHOR: 'author',AVAILABLE: 'available',AVATAR: 'avatar',BANNER: 'banner',BITRATE: 'bitrate',BOT: 'bot',BOT_PUBLIC: 'bot_public',BOT_REQUIRE_CODE_GRANT: 'bot_require_code_grant',BOX_ART: 'box_art',CALL: 'call',CAROUSEL_ITEMS: 'carousel_items',CATEGORY: 'category',CHANGES: 'changes',CHANNEL: 'channel',CHANNELS: 'channels',CHANNEL_ID: 'channel_id',CLIENT: 'client',CLIENT_INFO: 'client_info',CLIENT_STATUS: 'client_status',CODE: 'code',COLOR: 'color',CONNECTED_ACCOUNTS: 'connected_accounts',CONTENT: 'content',CONTENT_RATING: 'content_rating',CONTENT_RATING_AGENCY: 'content_rating_agency',COUNT: 'count',COVER_IMAGE: 'cover_image',CREATED_AT: 'created_at',CREATOR: 'creator',CREATOR_ID: 'creator_id',CURRENCY: 'currency',CUSTOM: 'custom',DEAF: 'deaf',DEFAULT_MESSAGE_NOTIFICATIONS: 'default_message_notifications',DELETE_MEMBER_DAYS: 'delete_member_days',DENY: 'deny',DEPENDENT_SKU_ID: 'dependent_sku_id',DEPRECATED: 'deprecated',DESCRIPTION: 'description',DESKTOP: 'desktop',DETAILS: 'details',DEVELOPERS: 'developers',DISCOVERY_SPLASH: 'discovery_splash',DISCRIMINATOR: 'discriminator',DISTRIBUTOR: 'distributor',EDITED_TIMESTAMP: 'edited_timestamp',EMAIL: 'email',EMBEDS: 'embeds',EMBED_CHANNEL_ID: 'embed_channel_id',EMBED_ENABLED: 'embed_enabled',EMOJI: 'emoji',EMOJIS: 'emojis',ENABLED: 'enabled',END: 'end',ENDED: 'ended',ENDED_TIMESTAMP: 'ended_timestamp',ENTITLEMENT_BRANCH_ID: 'entitlement_branch_id',EULA_ID: 'eula_id',EXECUTABLES: 'executables',EXPIRES_AT: 'expires_at',EXPIRE_BEHAVIOR: 'expire_behavior',EXPIRE_GRACE_PERIOD: 'expire_grace_period',EXPLICIT_CONTENT_FILTER: 'explicit_content_filter',FEATURES: 'features',FIELDS: 'fields',FLAGS: 'flags',FILENAME: 'filename',FOOTER: 'footer',FRIEND_SYNC: 'friend_sync',GAME: 'game',GAME_ID: 'game_id',GENRES: 'genres',GUILD: 'guild',GUILD_ID: 'guild_id',GUILD_IDS: 'guild_ids',HEADER_BACKGROUND: 'header_background',HEADER_LOGO_DARK_THEME: 'header_logo_dark_theme',HEADER_LOGO_LIGHT_THEME: 'header_logo_light_theme',HEIGHT: 'height',HERO_BACKGROUND: 'hero_background',HERO_VIDEO: 'hero_video',HOIST: 'hoist',HOISTED_ROLE: 'hoisted_role',HOOK: 'hook',ICON: 'icon',ICON_URL: 'icon_url',ID: 'id',IMAGE: 'image',INLINE: 'inline',INSTANCE: 'instance',INTEGRATIONS: 'integrations',INTERVAL: 'interval',INTERVAL_COUNT: 'interval_count',INVITER: 'inviter',IS_DIRTY: 'is_dirty',IS_PARTIAL: 'is_partial',JOIN: 'join',JOINED_AT: 'joined_at',KEY: 'key',LARGE: 'large',LARGE_IMAGE: 'large_image',LARGE_TEXT: 'large_text',LAST_MESSAGE_ID: 'last_message_id',LAST_MODIFIED: 'last_modified',LAST_PIN_TIMESTAMP: 'last_pin_timestamp',LAZY: 'lazy',LEGAL_NOTICE: 'legal_notice',LOCALE: 'locale',LOCALES: 'locales',MANAGED: 'managed',MANIFEST_LABELS: 'manifest_labels',MATCH: 'match',MAX_AGE: 'max_age',MAX_MEMBERS: 'max_members',MAX_PRESENCES: 'max_presences',MAX_USES: 'max_uses',MAX_VIDEO_CHANNEL_USERS: 'max_video_channel_users',ME: 'me',MEMBER: 'member',MEMBERS: 'members',MEMBERSHIP_STATE: 'membership_state',MEMBERS_REMOVED: 'members_removed',MEMBER_COUNT: 'member_count',MENTIONABLE: 'mentionable',MENTIONS: 'mentions',MENTION_CHANNELS: 'mention_channels',MENTION_EVERYONE: 'mention_everyone',MENTION_ROLES: 'mention_roles',MESSAGE_ID: 'message_id',MESSAGE_REFERENCE: 'message_reference',METADATA: 'metadata',MFA_ENABLED: 'mfa_enabled',MFA_LEVEL: 'mfa_level',MIME_TYPE: 'mime_type',MOBILE: 'mobile',MUTE: 'mute',MUTUAL_GUILDS: 'mutual_guilds',NAME: 'name',NEW_VALUE: 'new_value',NICK: 'nick',NICKS: 'nicks',NONCE: 'nonce',NSFW: 'nsfw',OLD_VALUE: 'old_value',OPTIMAL: 'optimal',OPTIONS: 'options',OS: 'os',OVERLAY: 'overlay',OVERLAY_COMPATIBILITY_HOOK: 'overlay_compatibility_hook',OWNER: 'owner',OWNER_ID: 'owner_id',OWNER_USER_ID: 'owner_user_id',PARENT_ID: 'parent_id',PARTICIPANTS: 'participants',PARTY: 'party',PARTY_ID: 'party_id',PAYOUT_ACCOUNT_STATUS: 'payout_account_status',PERMISSIONS: 'permissions',PERMISSIONS_NEW: 'permissions_new',PERMISSION_OVERWRITES: 'permission_overwrites',PHONE: 'phone',PINNED: 'pinned',PLATFORM: 'platform',POSITION: 'position',PREFERRED_LOCALE: 'preferred_locale',PREMIUM: 'premium',PREMIUM_GUILD_SINCE: 'premium_guild_since',PREMIUM_SINCE: 'premium_since',PREMIUM_SUBSCRIPTION_COUNT: 'premium_subscription_count',PREMIUM_TIER: 'premium_tier',PREMIUM_TYPE: 'premium_type',PRESENCES: 'presences',PREVIEW_VIDEO: 'preview_video',PRICE: 'price',PRIMARY_SKU_ID: 'primary_sku_id',PROVIDER: 'provider',PROXY_ICON_URL: 'proxy_icon_url',PROXY_URL: 'proxy_url',PUBLIC_FLAGS: 'public_flags',PUBLIC_UPDATES_CHANNEL_ID: 'public_updates_channel_id',PUBLISHERS: 'publishers',RATE_LIMIT_PER_USER: 'rate_limit_per_user',REACTIONS: 'reactions',REASON: 'reason',RECIPIENTS: 'recipients',REDEEMED: 'redeemed',REDIRECT_URIS: 'redirect_uris',REFERENCE_ID: 'reference_id',REGION: 'region',RELEASE_DATE: 'release_date',REQUIRE_COLONS: 'require_colons',REVOKED: 'revoked',RINGING: 'ringing',ROLES: 'roles',ROLE_ID: 'role_id',RPC_APPLICATION_STATE: 'rpc_application_state',RPC_ORIGINS: 'rpc_origins',RULES_CHANNEL_ID: 'rules_channel_id',SECRET: 'secret',SECRETS: 'secrets',SELF_DEAF: 'self_deaf',SELF_MUTE: 'self_mute',SELF_STREAM: 'self_stream',SELF_VIDEO: 'self_video',SERIALIZED_SOURCE_GUILD: 'serialized_source_guild',SESSION_ID: 'session_id',SHOW_ACTIVITY: 'show_activity',SHOW_AGE_GATE: 'show_age_gate',SIZE: 'size',SKU: 'sku',SKU_ID: 'sku_id',SLUG: 'slug',SMALL_IMAGE: 'small_image',SMALL_TEXT: 'small_text',SOURCE_GUILD_ID: 'source_guild_id',SPECTATE: 'spectate',SPLASH: 'splash',START: 'start',STARTED: 'started',STATE: 'state',STATUS: 'status',STOPPED: 'stopped',STORE_APPLICATION_STATE: 'store_application_state',STORE_LISTING: 'store_listing',SUBSCRIPTION_PLAN: 'subscription_plan',SUBSCRIPTION_PLAN_ID: 'subscription_plan_id',SUBTARGET: 'subtarget',SUMMARY: 'summary',SUPPRESS: 'suppress',SYNCED_AT: 'synced_at',SYNCING: 'syncing',SYNC_ID: 'sync_id',SYSTEM: 'system',SYSTEM_CHANNEL_FLAGS: 'system_channel_flags',SYSTEM_CHANNEL_ID: 'system_channel_id',SYSTEM_REQUIREMENTS: 'system_requirements',TAGLINE: 'tagline',TAGS: 'tags',TARGET: 'target',TARGET_ID: 'target_id',TARGET_USER: 'target_user',TARGET_USER_TYPE: 'target_user_type',TAX_INCLUSIVE: 'tax_inclusive',TEAM: 'team',TEAM_ID: 'team_id',TEMPORARY: 'temporary',TEXT: 'text',THIRD_PARTY_SKUS: 'third_party_skus',THUMBNAIL: 'thumbnail',TIMESTAMP: 'timestamp',TIMESTAMPS: 'timestamps',TITLE: 'title',TOKEN: 'token',TOPIC: 'topic',TTS: 'tts',TYPE: 'type',UNAVAILABLE: 'unavailable',UPDATED_AT: 'updated_at',URL: 'url',USAGE_COUNT: 'usage_count',USER: 'user',USERNAME: 'username',USER_ID: 'user_id',USER_LIMIT: 'user_limit',USES: 'uses',VALUE: 'value',VANITY_URL_CODE: 'vanity_url_code',VERIFICATION_LEVEL: 'verification_level',VERIFIED: 'verified',VERIFY_KEY: 'verify_key',VERSION: 'version',VIDEO: 'video',VIP: 'vip',VISIBILITY: 'visibility',VOICE_STATES: 'voice_states',WEB: 'web',WEBHOOK_ID: 'webhook_id',WIDGET_CHANNEL_ID: 'widget_channel_id',WIDGET_ENABLED: 'widget_enabled',WIDTH: 'width',YOUTUBE_TRAILER_VIDEO_ID: 'youtube_trailer_video_id',})

Type declaration

Const DiscordRegex

DiscordRegex: object = Object.freeze({[DiscordRegexNames.EMOJI]: /<a?:(\w+):(\d+)>/g,[DiscordRegexNames.JUMP_CHANNEL]: /^(?:https?):\/\/(?:(?:(?:canary|ptb)\.)?(?:discord|discordapp)\.com\/channels\/)(\@me|\d+)\/(\d+)$/g,[DiscordRegexNames.JUMP_CHANNEL_MESSAGE]: /^(?:https?):\/\/(?:(?:(?:canary|ptb)\.)?(?:discord|discordapp)\.com\/channels\/)(\@me|\d+)\/(\d+)\/(\d+)$/g,[DiscordRegexNames.MENTION_CHANNEL]: /<#(\d+)>/g,[DiscordRegexNames.MENTION_ROLE]: /<@&(\d+)>/g,[DiscordRegexNames.MENTION_USER]: /<@(!?)(\d+)>/g,[DiscordRegexNames.TEXT_BOLD]: /\*\*([\s\S]+?)\*\*/g,[DiscordRegexNames.TEXT_CODEBLOCK]: /```(([a-z0-9-]+?)\n+)?\n*([^]+?)\n*```/gi,[DiscordRegexNames.TEXT_CODESTRING]: /`([\s\S]+?)`/g,[DiscordRegexNames.TEXT_ITALICS]: /_([\s\S]+?)_|\*([\s\S]+?)\*/g,[DiscordRegexNames.TEXT_SNOWFLAKE]: /(\d+)/g,[DiscordRegexNames.TEXT_SPOILER]: /\|\|([\s\S]+?)\|\|/g,[DiscordRegexNames.TEXT_STRIKE]: /~~([\s\S]+?)~~(?!_)/g,[DiscordRegexNames.TEXT_UNDERLINE]: /__([\s\S]+?)__/g,[DiscordRegexNames.TEXT_URL]: /((?:https?):\/\/[^\s<]+[^<.,:;"'\]\s])/g,})

Type declaration

Const DistributorNames

DistributorNames: object = Object.freeze({[Distributors.BATTLENET]: 'Battle.net',[Distributors.DISCORD]: 'Discord',[Distributors.EPIC]: 'Epic',[Distributors.GOG]: 'GOG',[Distributors.ORIGIN]: 'Origin',[Distributors.STEAM]: 'Steam',[Distributors.TWITCH]: 'Twitch',[Distributors.UPLAY]: 'Uplay',})

Type declaration

Const DistributorUrls

DistributorUrls: object = Tools.URIEncodeWrap({[Distributors.BATTLENET]: (skuId: string) =>`https://shop.battle.net/family/${skuId}`,[Distributors.DISCORD]: (skuId: string, slug?: null | string) =>Endpoints.Routes.URL + `/store/skus/${skuId}` + ((slug) ? `/${slug}` : ''),[Distributors.EPIC]: (skuId: string) =>`https://epicgames.com/store/product/${skuId}`,[Distributors.GOG]: (skuId: string) =>`https://gog.com/game/${skuId}`,[Distributors.ORIGIN]: (skuId: string) =>`https://origin.com/search?searchString=${skuId}`,[Distributors.STEAM]: (skuId: string) =>`https://store.steampowered.com/app/${skuId}`,[Distributors.UPLAY]: (skuId: string) =>`https://store.ubi.com/search/?q=${skuId}`,})

Type declaration

  • [key: string]: any

Const EmbeddableRegexes

EmbeddableRegexes: object = Object.freeze({audio: /mp3|ogg|wav|flac/i,image: /png|jpe?g|webp|gif/i,video: /mp4|webm|mov/i,})

Type declaration

Const GuildFeatures

GuildFeatures: object = Tools.normalize({ANIMATED_ICON: null,BANNER: null,COMMERCE: null,DISCOVERABLE: null,ENABLED_DISCOVERABLE_BEFORE: null,FEATURABLE: null,INVITE_SPLASH: null,LURKABLE: null,MEMBER_LIST_DISABLED: null,MORE_EMOJI: null,NEWS: null,PARTNERED: null,PUBLIC: null,PUBLIC_DISABLED: null,VANITY_URL: null,VERIFIED: null,VIP_REGIONS: null,WELCOME_SCREEN_ENABLED: null,})

Type declaration

Const IMAGE_FORMATS

IMAGE_FORMATS: ReadonlyArray<string> = Object.freeze(Object.values(ImageFormats))

Const ImageSizes

ImageSizes: object = Object.freeze({SMALL: 64,LARGE: 160,})

Type declaration

Const LOCAL_GUILD_ID

LOCAL_GUILD_ID: "@me" = "@me"

Const LocalesText

LocalesText: object = Object.freeze({[Locales.BULGARIAN]: 'Bulgarian',[Locales.CHINESE]: 'Chinese, China',[Locales.CHINESE_TAIWAN]: 'Chinese, Taiwan',[Locales.CROATIAN]: 'Croatian',[Locales.CZECH]: 'Czech',[Locales.DANISH]: 'Danish',[Locales.DUTCH]: 'Dutch',[Locales.ENGLISH_GB]: 'English, UK',[Locales.ENGLISH_US]: 'English, US',[Locales.FINNISH]: 'Finnish',[Locales.FRENCH]: 'French',[Locales.GERMAN]: 'German',[Locales.GREEK]: 'Greek',[Locales.HUNGARIAN]: 'Hungarian',[Locales.ITALIAN]: 'Italian',[Locales.JAPANESE]: 'Japanese',[Locales.KOREAN]: 'Korean',[Locales.LITHUANIAN]: 'Lithuanian',[Locales.NORWEGIAN]: 'Norwegian',[Locales.POLISH]: 'Polish',[Locales.PORTUGUESE_BRAZILIAN]: 'Portuguese, Brazilian',[Locales.ROMANIAN]: 'Romanian',[Locales.RUSSIAN]: 'Russian',[Locales.SPANISH]: 'Spanish',[Locales.SWEDISH]: 'Swedish',[Locales.THAI]: 'Thai',[Locales.TURKISH]: 'Turkish',[Locales.UKRAINIAN]: 'Ukrainian',[Locales.VIETNAMESE]: 'Vietnamese',})

Type declaration

Const MAX_ATTACHMENT_SIZE

MAX_ATTACHMENT_SIZE: number = 8 * 1024 * 1024

Const MAX_ATTACHMENT_SIZE_PREMIUM

MAX_ATTACHMENT_SIZE_PREMIUM: number = 50 * 1024 * 1024

Const MAX_BITRATE

MAX_BITRATE: 128000 = 128000

Const MAX_EMOJI_SIZE

MAX_EMOJI_SIZE: 256000 = 256000

Const MAX_EMOJI_SLOTS

MAX_EMOJI_SLOTS: 50 = 50

Const MAX_EMOJI_SLOTS_MORE

MAX_EMOJI_SLOTS_MORE: 200 = 200

Const MEDIA_ATTACHMENT_URL_PREFIX

MEDIA_ATTACHMENT_URL_PREFIX: string = Endpoints.Urls.MEDIA + 'attachments/'

Const MEDIA_SIZES

MEDIA_SIZES: ReadonlyArray<number> = Object.freeze([16, 20, 32, 40, 64, 80, 128, 160, 256, 320, 512, 640, 1024, 1280, 1536, 2048, 3072, 4096])

Const MIN_BITRATE

MIN_BITRATE: 16000 = 16000

MediaCodecTypes

MediaCodecTypes: MediaCodecTypes

MediaCodecs

MediaCodecs: MediaCodecs

Const MessageTypesDeletable

MessageTypesDeletable: object = Object.freeze({[MessageTypes.BASE]: true,[MessageTypes.DEFAULT]: true,[MessageTypes.RECIPIENT_ADD]: false,[MessageTypes.RECIPIENT_REMOVE]: false,[MessageTypes.CALL]: false,[MessageTypes.CHANNEL_NAME_CHANGE]: false,[MessageTypes.CHANNEL_ICON_CHANGE]: false,[MessageTypes.CHANNEL_PINNED_MESSAGE]: true,[MessageTypes.GUILD_MEMBER_JOIN]: true,[MessageTypes.GUILD_PREMIUM_SUBSCRIPTION]: true,[MessageTypes.GUILD_PREMIUM_SUBSCRIPTION_TIER_1]: true,[MessageTypes.GUILD_PREMIUM_SUBSCRIPTION_TIER_2]: true,[MessageTypes.GUILD_PREMIUM_SUBSCRIPTION_TIER_3]: true,[MessageTypes.CHANNEL_FOLLOW_ADD]: true,[MessageTypes.GUILD_STREAM]: false,[MessageTypes.GUILD_DISCOVERY_DISQUALIFIED]: false,[MessageTypes.GUILD_DISCOVERY_REQUALIFIED]: false,})

Type declaration

Const MimeClassTypes

MimeClassTypes: Array<object> = [{type: 'name',classType: 'acrobat',regex: /\.pdf$/i,},{type: 'name',classType: 'ae',regex: /\.ae/i,},{type: 'name',classType: 'ai',regex: /\.ai$/i,},{type: 'name',classType: 'archive',regex: /\.(?:rar|zip|7z|tar|tar\.gz)$/i,},{type: 'name',classType: 'audio',regex: /\.(?:mp3|ogg|wav|flac)$/i,},{type: 'name',classType: 'code',regex: /\.(?:c\+\+|cpp|cc|c|h|hpp|mm|m|json|js|rb|rake|py|asm|fs|pyc|dtd|cgi|bat|rss|java|graphml|idb|lua|o|gml|prl|sls|conf|cmake|make|sln|vbe|cxx|wbf|vbs|r|wml|php|bash|applescript|fcgi|yaml|ex|exs|sh|ml|actionscript)$/i,},{type: 'name',classType: 'document',regex: /\.(?:txt|rtf|doc|docx|md|pages|ppt|pptx|pptm|key|log)$/i,},{type: 'mime',classType: 'image',regex: /^image\//,},{type: 'mime',classType: 'photoshop',regex: /^image\/vnd.adobe.photoshop/,},{type: 'name',classType: 'sketch',regex: /\.sketch$/i,},{type: 'name',classType: 'spreadsheet',regex: /\.(?:xls|xlsx|numbers|csv)$/i,},{type: 'mime',classType: 'video',regex: /^video\//,},{type: 'name',classType: 'webcode',regex: /\.(?:html|xhtml|htm|js|xml|xls|xsd|css|styl)$/i,},]

Const Opus

Opus: object

Type declaration

  • [key: string]: any

Const OpusProperties

OpusProperties: string[] = ['application','channels','sampleRate','use',]

Const PERMISSIONS_ALL

PERMISSIONS_ALL: number = (<Array<Permissions>> Object.values(Permissions)).reduce((permissions: number, permission: number) => permissions | permission,Permissions.NONE,)

Const PERMISSIONS_ALL_TEXT

PERMISSIONS_ALL_TEXT: number = [Permissions.ADD_REACTIONS,Permissions.SEND_MESSAGES,Permissions.SEND_TTS_MESSAGES,Permissions.MANAGE_MESSAGES,Permissions.EMBED_LINKS,Permissions.ATTACH_FILES,Permissions.READ_MESSAGE_HISTORY,Permissions.MENTION_EVERYONE,Permissions.USE_EXTERNAL_EMOJIS,].reduce((permissions: number, permission: number) => permissions | permission,Permissions.NONE,)

Const PERMISSIONS_ALL_VOICE

PERMISSIONS_ALL_VOICE: number = [Permissions.PRIORITY_SPEAKER,Permissions.STREAM,Permissions.CONNECT,Permissions.SPEAK,Permissions.MUTE_MEMBERS,Permissions.DEAFEN_MEMBERS,Permissions.MOVE_MEMBERS,Permissions.USE_VAD,].reduce((permissions: number, permission: number) => permissions | permission,Permissions.NONE,)

Const PERMISSIONS_DEFAULT

PERMISSIONS_DEFAULT: number = [Permissions.CREATE_INSTANT_INVITE,Permissions.CHANGE_NICKNAME,Permissions.VIEW_CHANNEL,Permissions.ADD_REACTIONS,Permissions.SEND_MESSAGES,Permissions.SEND_TTS_MESSAGES,Permissions.EMBED_LINKS,Permissions.ATTACH_FILES,Permissions.READ_MESSAGE_HISTORY,Permissions.MENTION_EVERYONE,Permissions.USE_EXTERNAL_EMOJIS,Permissions.STREAM,Permissions.CONNECT,Permissions.SPEAK,Permissions.USE_VAD,].reduce((permissions: number, permission: number) => permissions | permission,Permissions.NONE,)

Const PERMISSIONS_LURKER

PERMISSIONS_LURKER: number = [Permissions.VIEW_CHANNEL,Permissions.READ_MESSAGE_HISTORY,].reduce((permissions: number, permission: number) => permissions | permission,Permissions.NONE,)

Const Package

Package: object = Object.freeze({URL: 'https://github.com/detritusjs/client',VERSION: '0.11.0',})

Type declaration

Const PremiumGuildLimits

PremiumGuildLimits: object = Object.freeze({[PremiumGuildTiers.NONE]: Object.freeze({attachment: MAX_ATTACHMENT_SIZE,bitrate: MAX_BITRATE,emoji: MAX_EMOJI_SLOTS,}),[PremiumGuildTiers.TIER_1]: Object.freeze({attachment: MAX_ATTACHMENT_SIZE,bitrate: 128000,emoji: 100,}),[PremiumGuildTiers.TIER_2]: Object.freeze({attachment: MAX_ATTACHMENT_SIZE_PREMIUM,bitrate: 256000,emoji: 150,}),[PremiumGuildTiers.TIER_3]: Object.freeze({attachment: MAX_ATTACHMENT_SIZE_PREMIUM * 2,bitrate: 384000,emoji: 250,}),})

Type declaration

Const PremiumGuildSubscriptionsRequired

PremiumGuildSubscriptionsRequired: object = Object.freeze({[PremiumGuildTiers.NONE]: 0,[PremiumGuildTiers.TIER_1]: 2,[PremiumGuildTiers.TIER_2]: 15,[PremiumGuildTiers.TIER_3]: 30,})

Type declaration

Const PremiumGuildTierNames

PremiumGuildTierNames: object = Object.freeze({[PremiumGuildTiers.NONE]: 'No Level',[PremiumGuildTiers.TIER_1]: 'Level 1',[PremiumGuildTiers.TIER_2]: 'Level 2',[PremiumGuildTiers.TIER_3]: 'Level 3',})

Type declaration

Const PremiumUserLimits

PremiumUserLimits: object = Object.freeze({[PremiumUserTypes.NONE]: Object.freeze({attachment: MAX_ATTACHMENT_SIZE,}),[PremiumUserTypes.TIER_1]: Object.freeze({attachment: MAX_ATTACHMENT_SIZE_PREMIUM,}),[PremiumUserTypes.TIER_2]: Object.freeze({attachment: MAX_ATTACHMENT_SIZE_PREMIUM * 2,}),})

Type declaration

Const Regexes

Regexes: object = Object.freeze({[Strings.BOLD]: /\*\*/g,[Strings.CODEBLOCK]: new RegExp(Strings.CODEBLOCK, 'g'),[Strings.CODESTRING]: new RegExp(Strings.CODESTRING, 'g'),[Strings.ESCAPE]: /\\/g,[Strings.ITALICS]: /(_|\*)/g,[Strings.SPOILER]: /\|\|/g,[Strings.STRIKE]: new RegExp(Strings.STRIKE, 'g'),[Strings.UNDERLINE]: new RegExp(Strings.UNDERLINE, 'g'),EVERYONE: /@(everyone|here)/g,MENTION: /<@([!&]?[0-9]{16,21})>/g,MENTION_HARDCORE: /@/g,URL: /\)/g,})

Type declaration

Const Replacements

Replacements: object = Object.freeze({[Strings.BOLD]: '\\*\\*',[Strings.CODEBLOCK]: '``\u200b`',[Strings.CODESTRING]: '\\`',[Strings.ESCAPE]: '\\\\',[Strings.ITALICS]: '\\$1',[Strings.SPOILER]: '\\|\\|',[Strings.STRIKE]: '\\~\\~',[Strings.UNDERLINE]: '\\_\\_',MENTION: '\u200b',})

Type declaration

Const SPOILER_ATTACHMENT_PREFIX

SPOILER_ATTACHMENT_PREFIX: "SPOILER_" = "SPOILER_"

Const SpecialApplications

SpecialApplications: object = Object.freeze({XBOX: '438122941302046720',})

Type declaration

Const SpecialPrefixes

SpecialPrefixes: object = Object.freeze({SPOTIFY: 'spotify:',})

Type declaration

Const SpecialThirdPartySkus

SpecialThirdPartySkus: object = Object.freeze({'Call of Duty Black Ops 4': 'call-of-duty','Call of Duty Modern Warfare': 'call-of-duty-mw','StarCraft': 'starcraft-remastered','World of Warcraft Classic': 'world-of-warcraft','World of Warcraft Public Test': 'world-of-warcraft',})

Type declaration

  • [key: string]: string

Const SpecialUrls

SpecialUrls: object = Tools.URIEncodeWrap({SPOTIFY_TRACK: (trackId: string): string =>`https://open.spotify.com/track/${trackId}`,YOUTUBE_VIDEO: (videoId: string): string =>`https://youtu.be/${videoId}`,YOUTUBE_VIDEO_EMBED: (videoId: string): string =>`https://www.youtube.com/embed/${videoId}`,YOUTUBE_VIDEO_THUMBNAIL: (videoId: string): string =>`https://img.youtube.com/vi/${videoId}/maxresdefault.jpg`,})

Type declaration

  • [key: string]: any

Const Strings

Strings: object = Object.freeze({BOLD: '**',CODEBLOCK: '```',CODESTRING: '`',ESCAPE: '\\',ITALICS: '_',SPOILER: '||',STRIKE: '~~',UNDERLINE: '__',})

Type declaration

Const SystemMessages

SystemMessages: object = Object.freeze({CallMissed: 'You missed a call from :user:.',CallStarted: ':user: started a call.',ChannelFollowAdd: ':user: has added **:webhookName:** to this channel',ChannelIconChange: ':user: changed the channel name: **:name:**',ChannelNameChange: ':user: changed the channel icon.',PinnedMessage: ':user: pinned a message to this channel.',RecipientAdd: ':user: added :user2: to the group.',RecipientRemove: ':user: removed :user2: from the group.',RecipientRemoveSelf: ':user: left the group.',GuildMemberJoin: [":user: just joined the server - glhf!",":user: just joined. Everyone, look busy!",":user: just joined. Can I get a heal?",":user: joined your party.",":user: joined. You must construct additional pylons.","Ermagherd. :user: is here.","Welcome, :user:. Stay awhile and listen.","Welcome, :user:. We were expecting you ( ͡° ͜ʖ ͡°)","Welcome, :user:. We hope you brought pizza.","Welcome :user:. Leave your weapons by the door.","A wild :user: appeared.","Swoooosh. :user: just landed.","Brace yourselves. :user: just joined the server.",":user: just joined. Hide your bananas.",":user: just arrived. Seems OP - please nerf.",":user: just slid into the server.","A :user: has spawned in the server.","Big :user: showed up!","Where’s :user:? In the server!",":user: hopped into the server. Kangaroo!!",":user: just showed up. Hold my beer.","Challenger approaching - :user: has appeared!","It's a bird! It's a plane! Nevermind, it's just :user:.","It's :user:! Praise the sun! \\\\[T]/","Never gonna give :user: up. Never gonna let :user: down.","Ha! :user: has joined! You activated my trap card!","Cheers, love! :user:'s here!","Hey! Listen! :user: has joined!","We've been expecting you :user:","It's dangerous to go alone, take :user:!",":user: has joined the server! It's super effective!","Cheers, love! :user: is here!",":user: is here, as the prophecy foretold.",":user: has arrived. Party's over.","Ready player :user:",":user: is here to kick butt and chew bubblegum. And :user: is all out of gum.","Hello. Is it :user: you're looking for?",":user: has joined. Stay a while and listen!","Roses are red, violets are blue, :user: joined this server with you",],GuildMemberSubscribed: ':user: just boosted the server!',GuildMemberSubscribedAchievedTier: ':user: just boosted the server! :guild: has achieved **:premiumTier:!**',})

Type declaration

Const TYPING_TIMEOUT

TYPING_TIMEOUT: 10000 = 10000

Const UserPremiumGuildSubscriptionMonths

UserPremiumGuildSubscriptionMonths: object = Object.freeze({[UserPremiumGuildSubscriptionLevels.LEVEL_2]: 2,[UserPremiumGuildSubscriptionLevels.LEVEL_3]: 3,[UserPremiumGuildSubscriptionLevels.LEVEL_4]: 6,[UserPremiumGuildSubscriptionLevels.LEVEL_5]: 9,[UserPremiumGuildSubscriptionLevels.LEVEL_6]: 12,[UserPremiumGuildSubscriptionLevels.LEVEL_7]: 15,[UserPremiumGuildSubscriptionLevels.LEVEL_8]: 18,[UserPremiumGuildSubscriptionLevels.LEVEL_9]: 24,})

Type declaration

Const UserRequiredActions

UserRequiredActions: object = Tools.normalize({AGREEMENTS: null,REQUIRE_CAPTCHA: null,REQUIRE_VERIFIED_EMAIL: null,REQUIRE_VERIFIED_PHONE: null,})

Type declaration

Const ValidEndianness

ValidEndianness: object = Object.freeze({BE: 'BE',LE: 'LE',})

Type declaration

Const ValidSampleRates

ValidSampleRates: number[] = [8000,12000,16000,24000,48000,]

Const blankPrefixes

blankPrefixes: ReadonlyArray<string> = Object.freeze([''])

Const defaultBoldFilter

defaultBoldFilter: MarkupFilter = Object.freeze(Object.assign({}, defaultMarkupFilter, {limit: 1996,replacement: Replacements[Strings.BOLD],}))

Const defaultCodeblockFilter

defaultCodeblockFilter: CodeblockFilter = Object.freeze(Object.assign({}, defaultMarkupFilter, {language: '',limit: 1990,replacement: Replacements[Strings.CODEBLOCK],}))

Const defaultCodestringFilter

defaultCodestringFilter: MarkupFilter = Object.freeze(Object.assign({}, defaultMarkupFilter, {limit: 1998,replacement: Replacements[Strings.CODESTRING],}))

Const defaultItalicsFilter

defaultItalicsFilter: MarkupFilter = Object.freeze(Object.assign({}, defaultMarkupFilter, {limit: 1998,replacement: Replacements[Strings.ITALICS],}))

Const defaultMarkupFilter

defaultMarkupFilter: MarkupFilter = Object.freeze({limit: 2000,mentions: true,mentionEscapeCharacter: '\u200b',replacement: '',})

Const defaultSpoilerFilter

defaultSpoilerFilter: MarkupFilter = Object.freeze(Object.assign({}, defaultMarkupFilter, {limit: 1996,replacement: Replacements[Strings.SPOILER],}))

Const defaultStrikeFilter

defaultStrikeFilter: MarkupFilter = Object.freeze(Object.assign({}, defaultMarkupFilter, {limit: 1996,replacement: Replacements[Strings.STRIKE],}))

Const defaultUnderlineFilter

defaultUnderlineFilter: MarkupFilter = Object.freeze(Object.assign({}, defaultMarkupFilter, {limit: 1996,replacement: Replacements[Strings.UNDERLINE],}))

Const defaultsMessagesCache

defaultsMessagesCache: MessagesOptions = Object.freeze({expire: 10 * 60 * 1000, // auto expire messages after 10 minutes})

Const emptyBaseCollection

emptyBaseCollection: EmptyBaseCollection = new EmptyBaseCollection()

Const escape

escape: object = Object.freeze({all: (text: string, options: MarkupFilterOptions = {}): string => {const filter: MarkupFilter = Object.assign({}, defaultMarkupFilter, options);text = text.replace(Regexes[Strings.ESCAPE], Replacements[Strings.ESCAPE]);text = text.replace(Regexes[Strings.ITALICS], Replacements[Strings.ITALICS]);text = text.replace(Regexes[Strings.BOLD], Replacements[Strings.BOLD]);text = text.replace(Regexes[Strings.CODESTRING], Replacements[Strings.CODESTRING]);text = text.replace(Regexes[Strings.SPOILER], Replacements[Strings.SPOILER]);text = text.replace(Regexes[Strings.STRIKE], Replacements[Strings.STRIKE]);text = text.replace(Regexes[Strings.UNDERLINE], Replacements[Strings.UNDERLINE]);if (filter.mentions) {text = escape.mentions(text, filter.mentionEscapeCharacter);}return trueSlice(text, filter.limit);},bold: (text: string, options: MarkupFilterOptions = {}): string => {const filter: MarkupFilter = Object.assign({}, defaultBoldFilter, options);text = text.replace(Regexes[Strings.BOLD], filter.replacement);if (filter.mentions) {text = escape.mentions(text, filter.mentionEscapeCharacter);}return trueSlice(text, filter.limit);},codeblock: (text: string, options: CodeblockFilterOptions = {}): string => {const filter: CodeblockFilter = Object.assign({}, defaultCodeblockFilter, options);while (text.includes(Strings.CODEBLOCK)) {text = text.replace(Regexes[Strings.CODEBLOCK], filter.replacement);}if (options.limit === undefined) {filter.limit -= filter.language.length;}return trueSlice(text, filter.limit);},codestring: (text: string, options: MarkupFilterOptions = {}): string => {const filter: MarkupFilter = Object.assign({}, defaultCodestringFilter, options);text = text.replace(Regexes[Strings.CODESTRING], filter.replacement);if (filter.mentions) {text = escape.mentions(text, filter.mentionEscapeCharacter);}return trueSlice(text, filter.limit);},italics: (text: string, options: MarkupFilterOptions = {}): string => {const filter: MarkupFilter = Object.assign({}, defaultItalicsFilter, options);text = text.replace(Regexes[Strings.ITALICS], filter.replacement);if (filter.mentions) {text = escape.mentions(text, filter.mentionEscapeCharacter);}return trueSlice(text, filter.limit);},mentions: (text: string, replacement: string = Replacements.MENTION): string => {text = text.replace(Regexes.MENTION_HARDCORE, `@${replacement}`);return text;},spoiler: (text: string, options: MarkupFilterOptions = {}): string => {const filter: MarkupFilter = Object.assign({}, defaultSpoilerFilter, options);text = text.replace(Regexes[Strings.SPOILER], filter.replacement);if (filter.mentions) {text = escape.mentions(text, filter.mentionEscapeCharacter);}return trueSlice(text, filter.limit);},strike: (text: string, options: MarkupFilterOptions = {}): string => {const filter: MarkupFilter = Object.assign({}, defaultStrikeFilter, options);text = text.replace(Regexes[Strings.STRIKE], filter.replacement);if (filter.mentions) {text = escape.mentions(text, filter.mentionEscapeCharacter);}return trueSlice(text, filter.limit);},underline: (text: string, options: MarkupFilterOptions = {}): string => {const filter: MarkupFilter = Object.assign({}, defaultUnderlineFilter, options);text = text.replace(Regexes[Strings.UNDERLINE], filter.replacement);if (filter.mentions) {text = escape.mentions(text, filter.mentionEscapeCharacter);}return trueSlice(text, filter.limit);},url: (text: string, options: MarkupFilterOptions = {}): string => {text = text.replace(Regexes.URL, (match: string) => {return '%' + match.charCodeAt(0).toString(16);});return text;},})

Type declaration

guildIdToShardId

guildIdToShardId: guildIdToShardId

Const keysApplication

keysApplication: BaseSet<string> = new BaseSet<string>([DiscordKeys.ALIASES,DiscordKeys.BOT_PUBLIC,DiscordKeys.BOT_REQUIRE_CODE_GRANT,DiscordKeys.COVER_IMAGE,DiscordKeys.DESCRIPTION,DiscordKeys.DEVELOPERS,DiscordKeys.EULA_ID,DiscordKeys.EXECUTABLES,DiscordKeys.GUILD_ID,DiscordKeys.HOOK,DiscordKeys.ICON,DiscordKeys.ID,DiscordKeys.NAME,DiscordKeys.OVERLAY,DiscordKeys.OVERLAY_COMPATIBILITY_HOOK,DiscordKeys.PRIMARY_SKU_ID,DiscordKeys.PUBLISHERS,DiscordKeys.RPC_ORIGINS,DiscordKeys.SLUG,DiscordKeys.SPLASH,DiscordKeys.SUMMARY,DiscordKeys.THIRD_PARTY_SKUS,DiscordKeys.VERIFY_KEY,DiscordKeys.YOUTUBE_TRAILER_VIDEO_ID,])

Const keysApplicationNews

keysApplicationNews: BaseSet<string> = new BaseSet<string>([DiscordKeys.APPLICATION_ID,DiscordKeys.CATEGORY,DiscordKeys.DESCRIPTION,DiscordKeys.FLAGS,DiscordKeys.FOOTER,DiscordKeys.GAME_ID,DiscordKeys.ID,DiscordKeys.THUMBNAIL,DiscordKeys.TIMESTAMP,DiscordKeys.TITLE,DiscordKeys.TYPE,DiscordKeys.URL,])

Const keysApplicationThirdPartySku

keysApplicationThirdPartySku: BaseSet<string> = new BaseSet<string>([DiscordKeys.DISTRIBUTOR,DiscordKeys.ID,DiscordKeys.SKU,])

Const keysAttachment

keysAttachment: BaseSet<string> = new BaseSet<string>([DiscordKeys.FILENAME,DiscordKeys.HEIGHT,DiscordKeys.ID,DiscordKeys.PROXY_URL,DiscordKeys.SIZE,DiscordKeys.URL,DiscordKeys.WIDTH,])

Const keysAuditLog

keysAuditLog: BaseSet<string> = new BaseSet<string>([DiscordKeys.ACTION_TYPE,DiscordKeys.CHANGES,DiscordKeys.GUILD_ID,DiscordKeys.ID,DiscordKeys.OPTIONS,DiscordKeys.REASON,DiscordKeys.TARGET,DiscordKeys.TARGET_ID,DiscordKeys.USER,DiscordKeys.USER_ID,])

Const keysAuditLogChange

keysAuditLogChange: BaseSet<string> = new BaseSet<string>([DiscordKeys.KEY,DiscordKeys.NEW_VALUE,DiscordKeys.OLD_VALUE,])

Const keysAuditLogOptions

keysAuditLogOptions: BaseSet<string> = new BaseSet<string>([DiscordKeys.CHANNEL,DiscordKeys.CHANNEL_ID,DiscordKeys.COUNT,DiscordKeys.DELETE_MEMBER_DAYS,DiscordKeys.ID,DiscordKeys.MEMBERS_REMOVED,DiscordKeys.SUBTARGET,DiscordKeys.TYPE,])

Const keysBaseGuild

keysBaseGuild: BaseSet<string> = new BaseSet<string>([DiscordKeys.FEATURES,DiscordKeys.ICON,DiscordKeys.ID,DiscordKeys.NAME,])

Const keysChannelBase

keysChannelBase: BaseSet<string> = new BaseSet<string>([DiscordKeys.ID,DiscordKeys.IS_PARTIAL,DiscordKeys.TYPE,])

Const keysChannelDm

keysChannelDm: BaseSet<string> = new BaseSet<string>([DiscordKeys.ID,DiscordKeys.IS_PARTIAL,DiscordKeys.LAST_MESSAGE_ID,DiscordKeys.LAST_PIN_TIMESTAMP,DiscordKeys.NICKS,DiscordKeys.RECIPIENTS,DiscordKeys.TYPE,])

Const keysChannelDmGroup

keysChannelDmGroup: BaseSet<string> = new BaseSet<string>([...keysChannelDm,DiscordKeys.APPLICATION_ID,DiscordKeys.ICON,DiscordKeys.NAME,DiscordKeys.OWNER_ID,])

Const keysChannelGuildBase

keysChannelGuildBase: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD_ID,DiscordKeys.ID,DiscordKeys.IS_PARTIAL,DiscordKeys.NAME,DiscordKeys.NSFW,DiscordKeys.PARENT_ID,DiscordKeys.PERMISSION_OVERWRITES,DiscordKeys.POSITION,DiscordKeys.RATE_LIMIT_PER_USER,DiscordKeys.TYPE,])

Const keysChannelGuildCategory

keysChannelGuildCategory: BaseSet<string> = new BaseSet<string>([...keysChannelGuildBase,DiscordKeys.BITRATE,DiscordKeys.USER_LIMIT,])

Const keysChannelGuildStore

keysChannelGuildStore: BaseSet<string> = new BaseSet<string>([...keysChannelGuildBase,DiscordKeys.BITRATE,DiscordKeys.USER_LIMIT,])

Const keysChannelGuildText

keysChannelGuildText: BaseSet<string> = new BaseSet<string>([...keysChannelGuildBase,DiscordKeys.LAST_MESSAGE_ID,DiscordKeys.LAST_PIN_TIMESTAMP,DiscordKeys.TOPIC,])

Const keysChannelGuildVoice

keysChannelGuildVoice: BaseSet<string> = new BaseSet<string>([...keysChannelGuildBase,DiscordKeys.BITRATE,DiscordKeys.USER_LIMIT,])

Const keysConnectedAccount

keysConnectedAccount: BaseSet<string> = new BaseSet<string>([DiscordKeys.FRIEND_SYNC,DiscordKeys.ID,DiscordKeys.INTEGRATIONS,DiscordKeys.NAME,DiscordKeys.REVOKED,DiscordKeys.SHOW_ACTIVITY,DiscordKeys.TYPE,DiscordKeys.VERIFIED,DiscordKeys.VISIBILITY,])

Const keysEmbed

keysEmbed: BaseSet<string> = new BaseSet<string>([DiscordKeys.AUTHOR,DiscordKeys.COLOR,DiscordKeys.DESCRIPTION,DiscordKeys.FIELDS,DiscordKeys.FOOTER,DiscordKeys.IMAGE,DiscordKeys.PROVIDER,DiscordKeys.REFERENCE_ID,DiscordKeys.THUMBNAIL,DiscordKeys.TIMESTAMP,DiscordKeys.TITLE,DiscordKeys.TYPE,DiscordKeys.URL,DiscordKeys.VIDEO,])

Const keysEmbedAuthor

keysEmbedAuthor: BaseSet<string> = new BaseSet<string>([DiscordKeys.ICON_URL,DiscordKeys.NAME,DiscordKeys.PROXY_ICON_URL,DiscordKeys.URL,])

Const keysEmbedField

keysEmbedField: BaseSet<string> = new BaseSet<string>([DiscordKeys.INLINE,DiscordKeys.NAME,DiscordKeys.VALUE,])

Const keysEmbedFooter

keysEmbedFooter: BaseSet<string> = new BaseSet<string>([DiscordKeys.ICON_URL,DiscordKeys.PROXY_ICON_URL,DiscordKeys.TEXT,])

Const keysEmbedImage

keysEmbedImage: BaseSet<string> = new BaseSet<string>([DiscordKeys.HEIGHT,DiscordKeys.PROXY_URL,DiscordKeys.URL,DiscordKeys.WIDTH,])

Const keysEmbedProvider

keysEmbedProvider: BaseSet<string> = new BaseSet<string>([DiscordKeys.NAME,DiscordKeys.URL,])

Const keysEmoji

keysEmoji: BaseSet<string> = new BaseSet<string>([DiscordKeys.ANIMATED,DiscordKeys.AVAILABLE,DiscordKeys.GUILD_ID,DiscordKeys.ID,DiscordKeys.MANAGED,DiscordKeys.NAME,DiscordKeys.REQUIRE_COLONS,DiscordKeys.ROLES,DiscordKeys.USER,])

Const keysGift

keysGift: BaseSet<string> = new BaseSet<string>([DiscordKeys.APPLICATION_ID,DiscordKeys.CODE,DiscordKeys.EXPIRES_AT,DiscordKeys.MAX_USES,DiscordKeys.REDEEMED,DiscordKeys.SKU_ID,DiscordKeys.STORE_LISTING,DiscordKeys.SUBSCRIPTION_PLAN,DiscordKeys.SUBSCRIPTION_PLAN_ID,DiscordKeys.USER,DiscordKeys.USES,])

Const keysGuild

keysGuild: BaseSet<string> = new BaseSet<string>([DiscordKeys.AFK_CHANNEL_ID,DiscordKeys.AFK_TIMEOUT,DiscordKeys.APPLICATION_ID,DiscordKeys.BANNER,DiscordKeys.CHANNELS,DiscordKeys.DEFAULT_MESSAGE_NOTIFICATIONS,DiscordKeys.DESCRIPTION,DiscordKeys.DISCOVERY_SPLASH,DiscordKeys.EMBED_CHANNEL_ID,DiscordKeys.EMBED_ENABLED,DiscordKeys.EMOJIS,DiscordKeys.EXPLICIT_CONTENT_FILTER,DiscordKeys.FEATURES,DiscordKeys.ICON,DiscordKeys.ID,DiscordKeys.IS_PARTIAL,DiscordKeys.JOINED_AT,DiscordKeys.LARGE,DiscordKeys.LAZY,DiscordKeys.MAX_MEMBERS,DiscordKeys.MAX_PRESENCES,DiscordKeys.MAX_VIDEO_CHANNEL_USERS,DiscordKeys.MEMBER_COUNT,DiscordKeys.MEMBERS,DiscordKeys.MFA_LEVEL,DiscordKeys.NAME,DiscordKeys.OWNER_ID,DiscordKeys.PREFERRED_LOCALE,DiscordKeys.PREMIUM_SUBSCRIPTION_COUNT,DiscordKeys.PREMIUM_TIER,DiscordKeys.PRESENCES,DiscordKeys.PUBLIC_UPDATES_CHANNEL_ID,DiscordKeys.REGION,DiscordKeys.ROLES,DiscordKeys.RULES_CHANNEL_ID,DiscordKeys.SPLASH,DiscordKeys.SYSTEM_CHANNEL_FLAGS,DiscordKeys.SYSTEM_CHANNEL_ID,DiscordKeys.UNAVAILABLE,DiscordKeys.VANITY_URL_CODE,DiscordKeys.VERIFICATION_LEVEL,DiscordKeys.VOICE_STATES,DiscordKeys.WIDGET_CHANNEL_ID,DiscordKeys.WIDGET_ENABLED,])

Const keysGuildMe

keysGuildMe: BaseSet<string> = new BaseSet<string>([DiscordKeys.FEATURES,DiscordKeys.ICON,DiscordKeys.ID,DiscordKeys.NAME,DiscordKeys.OWNER,DiscordKeys.PERMISSIONS,])

Const keysIntegration

keysIntegration: BaseSet<string> = new BaseSet<string>([DiscordKeys.ACCOUNT,DiscordKeys.ENABLED,DiscordKeys.EXPIRE_BEHAVIOR,DiscordKeys.EXPIRE_GRACE_PERIOD,DiscordKeys.GUILD_ID,DiscordKeys.ID,DiscordKeys.NAME,DiscordKeys.ROLE_ID,DiscordKeys.SYNCED_AT,DiscordKeys.SYNCING,DiscordKeys.TYPE,DiscordKeys.USER,])

Const keysIntegrationAccount

keysIntegrationAccount: BaseSet<string> = new BaseSet<string>([DiscordKeys.ID,DiscordKeys.NAME,])

Const keysInvite

keysInvite: BaseSet<string> = new BaseSet<string>([DiscordKeys.APPROXIMATE_MEMBER_COUNT,DiscordKeys.APPROXIMATE_PRESENCE_COUNT,DiscordKeys.CHANNEL,DiscordKeys.CODE,DiscordKeys.CREATED_AT,DiscordKeys.GUILD,DiscordKeys.INVITER,DiscordKeys.MAX_AGE,DiscordKeys.MAX_USES,DiscordKeys.REVOKED,DiscordKeys.TARGET_USER,DiscordKeys.TARGET_USER_TYPE,DiscordKeys.TEMPORARY,DiscordKeys.USES,])

Const keysMember

keysMember: BaseSet<string> = new BaseSet<string>([DiscordKeys.DEAF,DiscordKeys.GUILD_ID,DiscordKeys.HOISTED_ROLE,DiscordKeys.JOINED_AT,DiscordKeys.MUTE,DiscordKeys.NICK,DiscordKeys.PREMIUM_SINCE,DiscordKeys.ROLES,DiscordKeys.USER,])

Const keysMergeChannelBase

keysMergeChannelBase: BaseSet<string> = new BaseSet<string>()

Const keysMergeChannelGuildBase

keysMergeChannelGuildBase: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD_ID,DiscordKeys.ID,])

Const keysMergeEmoji

keysMergeEmoji: BaseSet<string> = new BaseSet<string>([DiscordKeys.ANIMATED,DiscordKeys.ID,DiscordKeys.GUILD_ID,])

Const keysMergeGift

keysMergeGift: BaseSet<string> = new BaseSet<string>([DiscordKeys.SUBSCRIPTION_PLAN,])

Const keysMergeGuild

keysMergeGuild: BaseSet<string> = new BaseSet<string>([DiscordKeys.ID,DiscordKeys.JOINED_AT,DiscordKeys.ROLES,DiscordKeys.MEMBERS,DiscordKeys.PRESENCES,])

Const keysMergeInvite

keysMergeInvite: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD,])

Const keysMergeMember

keysMergeMember: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD_ID,])

Const keysMergeMessage

keysMergeMessage: BaseSet<string> = new BaseSet<string>([DiscordKeys.WEBHOOK_ID,DiscordKeys.AUTHOR,DiscordKeys.CHANNEL_ID,DiscordKeys.GUILD_ID,DiscordKeys.ID,DiscordKeys.MENTIONS,DiscordKeys.TYPE,])

Const keysMergePresence

keysMergePresence: BaseSet<string> = new BaseSet<string>([DiscordKeys.USER,DiscordKeys.GUILD_ID,DiscordKeys.ACTIVITIES,])

Const keysMergePresenceActivity

keysMergePresenceActivity: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD_ID,])

Const keysMergePresenceActivityAssets

keysMergePresenceActivityAssets: BaseSet<string> = keysPresenceActivityAssets

Const keysMergePresenceActivityTimestamps

keysMergePresenceActivityTimestamps: BaseSet<string> = keysPresenceActivityTimestamps

Const keysMergeReaction

keysMergeReaction: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD_ID,])

Const keysMergeRole

keysMergeRole: BaseSet<string> = new BaseSet<string>([DiscordKeys.ID,DiscordKeys.TAGS,])

Const keysMergeSession

keysMergeSession: BaseSet<string> = new BaseSet<string>([DiscordKeys.ACTIVITIES,])

Const keysMergeSessionClientInfo

keysMergeSessionClientInfo: BaseSet<string> = keysSessionClientInfo

Const keysMergeTemplate

keysMergeTemplate: BaseSet<string> = new BaseSet<string>([DiscordKeys.SOURCE_GUILD_ID,])

Const keysMergeTyping

keysMergeTyping: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD_ID,])

Const keysMergeVoiceCall

keysMergeVoiceCall: BaseSet<string> = new BaseSet<string>([DiscordKeys.VOICE_STATES,])

Const keysMergeVoiceState

keysMergeVoiceState: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD_ID,])

Const keysMessage

keysMessage: BaseSet<string> = new BaseSet<string>([DiscordKeys.ACTIVITY,DiscordKeys.APPLICATION,DiscordKeys.ATTACHMENTS,DiscordKeys.AUTHOR,DiscordKeys.CALL,DiscordKeys.CHANNEL_ID,DiscordKeys.CONTENT,DiscordKeys.EDITED_TIMESTAMP,DiscordKeys.EMBEDS,DiscordKeys.FLAGS,DiscordKeys.GUILD_ID,DiscordKeys.ID,DiscordKeys.MEMBER,DiscordKeys.MENTIONS,DiscordKeys.MENTION_CHANNELS,DiscordKeys.MENTION_EVERYONE,DiscordKeys.MENTION_ROLES,DiscordKeys.MESSAGE_REFERENCE,DiscordKeys.NONCE,DiscordKeys.PINNED,DiscordKeys.REACTIONS,DiscordKeys.TIMESTAMP,DiscordKeys.TTS,DiscordKeys.TYPE,DiscordKeys.WEBHOOK_ID,])

Const keysMessageActivity

keysMessageActivity: BaseSet<string> = new BaseSet<string>([DiscordKeys.COVER_IMAGE,DiscordKeys.NAME,DiscordKeys.PARTY_ID,DiscordKeys.TYPE,])

Const keysMessageCall

keysMessageCall: BaseSet<string> = new BaseSet<string>([DiscordKeys.ENDED_TIMESTAMP,DiscordKeys.PARTICIPANTS,])

Const keysMessageEmbed

keysMessageEmbed: BaseSet<string> = new BaseSet<string>([DiscordKeys.AUTHOR,DiscordKeys.COLOR,DiscordKeys.DESCRIPTION,DiscordKeys.FIELDS,DiscordKeys.FOOTER,DiscordKeys.IMAGE,DiscordKeys.PROVIDER,DiscordKeys.REFERENCE_ID,DiscordKeys.THUMBNAIL,DiscordKeys.TIMESTAMP,DiscordKeys.TITLE,DiscordKeys.TYPE,DiscordKeys.URL,DiscordKeys.VIDEO,])

Const keysMessageEmbedAuthor

keysMessageEmbedAuthor: BaseSet<string> = new BaseSet<string>([DiscordKeys.ICON_URL,DiscordKeys.NAME,DiscordKeys.PROXY_ICON_URL,DiscordKeys.URL,])

Const keysMessageEmbedField

keysMessageEmbedField: BaseSet<string> = new BaseSet<string>([DiscordKeys.INLINE,DiscordKeys.NAME,DiscordKeys.VALUE,])

Const keysMessageEmbedFooter

keysMessageEmbedFooter: BaseSet<string> = new BaseSet<string>([DiscordKeys.ICON_URL,DiscordKeys.PROXY_ICON_URL,DiscordKeys.TEXT,])

Const keysMessageEmbedImage

keysMessageEmbedImage: BaseSet<string> = new BaseSet<string>([DiscordKeys.HEIGHT,DiscordKeys.PROXY_URL,DiscordKeys.URL,DiscordKeys.WIDTH,])

Const keysMessageEmbedProvider

keysMessageEmbedProvider: BaseSet<string> = new BaseSet<string>([DiscordKeys.NAME,DiscordKeys.URL,])

Const keysMessageReference

keysMessageReference: BaseSet<string> = new BaseSet<string>([DiscordKeys.CHANNEL_ID,DiscordKeys.GUILD_ID,DiscordKeys.MESSAGE_ID,])

Const keysOauth2Application

keysOauth2Application: BaseSet<string> = new BaseSet<string>([DiscordKeys.BOT,DiscordKeys.BOT_PUBLIC,DiscordKeys.BOT_REQUIRE_CODE_GRANT,DiscordKeys.COVER_IMAGE,DiscordKeys.DESCRIPTION,DiscordKeys.FLAGS,DiscordKeys.GUILD_ID,DiscordKeys.HOOK,DiscordKeys.ICON,DiscordKeys.ID,DiscordKeys.NAME,DiscordKeys.OWNER,DiscordKeys.PRIMARY_SKU_ID,DiscordKeys.REDIRECT_URIS,DiscordKeys.RPC_APPLICATION_STATE,DiscordKeys.RPC_ORIGINS,DiscordKeys.SECRET,DiscordKeys.SLUG,DiscordKeys.STORE_APPLICATION_STATE,DiscordKeys.SUMMARY,DiscordKeys.TEAM,DiscordKeys.VERIFY_KEY,])

Const keysOauth2ApplicationAsset

keysOauth2ApplicationAsset: BaseSet<string> = new BaseSet<string>([DiscordKeys.APPLICATION_ID,DiscordKeys.ID,DiscordKeys.NAME,DiscordKeys.TYPE,])

Const keysOverwrite

keysOverwrite: BaseSet<string> = new BaseSet<string>([DiscordKeys.ALLOW,DiscordKeys.DENY,DiscordKeys.ID,DiscordKeys.TYPE,])

Const keysPremiumSubscription

keysPremiumSubscription: BaseSet<string> = new BaseSet<string>([DiscordKeys.ENDED,DiscordKeys.GUILD_ID,DiscordKeys.ID,DiscordKeys.USER_ID,])

Const keysPresence

keysPresence: BaseSet<string> = new BaseSet<string>([DiscordKeys.ACTIVITIES,DiscordKeys.CLIENT_STATUS,DiscordKeys.GAME,DiscordKeys.GUILD_ID,DiscordKeys.GUILD_IDS,DiscordKeys.LAST_MODIFIED,DiscordKeys.STATUS,DiscordKeys.USER,])

Const keysPresenceActivity

keysPresenceActivity: BaseSet<string> = new BaseSet<string>([DiscordKeys.APPLICATION_ID,DiscordKeys.ASSETS,DiscordKeys.CREATED_AT,DiscordKeys.DETAILS,DiscordKeys.EMOJI,DiscordKeys.FLAGS,DiscordKeys.GUILD_ID,DiscordKeys.GUILD_IDS,DiscordKeys.ID,DiscordKeys.INSTANCE,DiscordKeys.METADATA,DiscordKeys.NAME,DiscordKeys.PARTY,DiscordKeys.PLATFORM,DiscordKeys.POSITION,DiscordKeys.SECRETS,DiscordKeys.SESSION_ID,DiscordKeys.STATE,DiscordKeys.SYNC_ID,DiscordKeys.TIMESTAMPS,DiscordKeys.TYPE,DiscordKeys.URL,])

Const keysPresenceActivityAssets

keysPresenceActivityAssets: BaseSet<string> = new BaseSet<string>([DiscordKeys.LARGE_IMAGE,DiscordKeys.LARGE_TEXT,DiscordKeys.SMALL_IMAGE,DiscordKeys.SMALL_TEXT,])

Const keysPresenceActivityTimestamps

keysPresenceActivityTimestamps: BaseSet<string> = new BaseSet<string>([DiscordKeys.END,DiscordKeys.START,])

Const keysProfile

keysProfile: BaseSet<string> = new BaseSet<string>([DiscordKeys.CONNECTED_ACCOUNTS,DiscordKeys.MUTUAL_GUILDS,DiscordKeys.PREMIUM_GUILD_SINCE,DiscordKeys.PREMIUM_SINCE,DiscordKeys.USER,])

Const keysReaction

keysReaction: BaseSet<string> = new BaseSet<string>([DiscordKeys.CHANNEL_ID,DiscordKeys.COUNT,DiscordKeys.EMOJI,DiscordKeys.GUILD_ID,DiscordKeys.IS_PARTIAL,DiscordKeys.MESSAGE_ID,DiscordKeys.ME,])

Const keysRelationship

keysRelationship: BaseSet<string> = new BaseSet<string>([DiscordKeys.ID,DiscordKeys.TYPE,DiscordKeys.USER,])

Const keysRole

keysRole: BaseSet<string> = new BaseSet<string>([DiscordKeys.COLOR,DiscordKeys.GUILD_ID,DiscordKeys.HOIST,DiscordKeys.ID,DiscordKeys.MANAGED,DiscordKeys.MENTIONABLE,DiscordKeys.NAME,DiscordKeys.PERMISSIONS,DiscordKeys.POSITION,DiscordKeys.TAGS,])

Const keysSession

keysSession: BaseSet<string> = new BaseSet<string>([DiscordKeys.ACTIVE,DiscordKeys.ACTIVITIES,DiscordKeys.CLIENT_INFO,DiscordKeys.GAME,DiscordKeys.POSITION,DiscordKeys.SESSION_ID,DiscordKeys.STATUS,])

Const keysSessionClientInfo

keysSessionClientInfo: BaseSet<string> = new BaseSet<string>([DiscordKeys.CLIENT,DiscordKeys.OS,DiscordKeys.VERSION,])

Const keysSkipDifferenceGuild

keysSkipDifferenceGuild: BaseSet<string> = new BaseSet<string>([DiscordKeys.EMOJIS,DiscordKeys.MEMBERS,DiscordKeys.PRESENCES,DiscordKeys.ROLES,])

Const keysSkipDifferenceMessage

keysSkipDifferenceMessage: BaseSet<string> = new BaseSet<string>([DiscordKeys.AUTHOR,DiscordKeys.CHANNEL_ID,DiscordKeys.GUILD_ID,DiscordKeys.ID,DiscordKeys.MEMBER,])

Const keysSkipDifferencePresence

keysSkipDifferencePresence: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD_ID,DiscordKeys.GUILD_IDS,])

Const keysSkipDifferencePresenceActivity

keysSkipDifferencePresenceActivity: BaseSet<string> = new BaseSet<string>([DiscordKeys.GUILD_ID,DiscordKeys.GUILD_IDS,])

Const keysSkipDifferenceVoiceState

keysSkipDifferenceVoiceState: BaseSet<string> = new BaseSet<string>([DiscordKeys.MEMBER,])

Const keysSku

keysSku: BaseSet<string> = new BaseSet<string>([DiscordKeys.ACCESS_TYPE,DiscordKeys.APPLICATION,DiscordKeys.APPLICATION_ID,DiscordKeys.CONTENT_RATING,DiscordKeys.CONTENT_RATING_AGENCY,DiscordKeys.DEPENDENT_SKU_ID,DiscordKeys.FEATURES,DiscordKeys.FLAGS,DiscordKeys.GENRES,DiscordKeys.ID,DiscordKeys.LEGAL_NOTICE,DiscordKeys.LOCALES,DiscordKeys.MANIFEST_LABELS,DiscordKeys.NAME,DiscordKeys.PREMIUM,DiscordKeys.PRICE,DiscordKeys.RELEASE_DATE,DiscordKeys.SHOW_AGE_GATE,DiscordKeys.SLUG,DiscordKeys.SYSTEM_REQUIREMENTS,DiscordKeys.TYPE,])

Const keysStore

keysStore: BaseSet<string> = new BaseSet<string>([DiscordKeys.ASSETS,DiscordKeys.BOX_ART,DiscordKeys.CAROUSEL_ITEMS,DiscordKeys.DESCRIPTION,DiscordKeys.ENTITLEMENT_BRANCH_ID,DiscordKeys.HEADER_BACKGROUND,DiscordKeys.HEADER_LOGO_DARK_THEME,DiscordKeys.HEADER_LOGO_LIGHT_THEME,DiscordKeys.HERO_BACKGROUND,DiscordKeys.HERO_VIDEO,DiscordKeys.ID,DiscordKeys.PREVIEW_VIDEO,DiscordKeys.SKU,DiscordKeys.SUMMARY,DiscordKeys.TAGLINE,DiscordKeys.THUMBNAIL,])

Const keysStoreApplicationAsset

keysStoreApplicationAsset: BaseSet<string> = new BaseSet<string>([DiscordKeys.APPLICATION_ID,DiscordKeys.FILENAME,DiscordKeys.HEIGHT,DiscordKeys.ID,DiscordKeys.MIME_TYPE,DiscordKeys.SIZE,DiscordKeys.WIDTH,])

Const keysStoreListingAsset

keysStoreListingAsset: BaseSet<string> = new BaseSet<string>([DiscordKeys.HEIGHT,DiscordKeys.ID,DiscordKeys.MIME_TYPE,DiscordKeys.SIZE,DiscordKeys.WIDTH,])

Const keysSubscriptionPlan

keysSubscriptionPlan: BaseSet<string> = new BaseSet<string>([DiscordKeys.CURRENCY,DiscordKeys.ID,DiscordKeys.INTERVAL,DiscordKeys.INTERVAL_COUNT,DiscordKeys.NAME,DiscordKeys.PRICE,DiscordKeys.SKU_ID,DiscordKeys.TAX_INCLUSIVE,])

Const keysTeam

keysTeam: BaseSet<string> = new BaseSet<string>([DiscordKeys.ICON,DiscordKeys.ID,DiscordKeys.MEMBERS,DiscordKeys.NAME,DiscordKeys.OWNER_USER_ID,DiscordKeys.PAYOUT_ACCOUNT_STATUS,])

Const keysTeamMember

keysTeamMember: BaseSet<string> = new BaseSet<string>([DiscordKeys.MEMBERSHIP_STATE,DiscordKeys.PERMISSIONS,DiscordKeys.TEAM_ID,DiscordKeys.USER,])

Const keysTemplate

keysTemplate: BaseSet<string> = new BaseSet<string>([DiscordKeys.CODE,DiscordKeys.CREATED_AT,DiscordKeys.CREATOR,DiscordKeys.CREATOR_ID,DiscordKeys.DESCRIPTION,DiscordKeys.IS_DIRTY,DiscordKeys.NAME,DiscordKeys.SERIALIZED_SOURCE_GUILD,DiscordKeys.SOURCE_GUILD_ID,DiscordKeys.UPDATED_AT,DiscordKeys.USAGE_COUNT,])

Const keysTyping

keysTyping: BaseSet<string> = new BaseSet<string>([DiscordKeys.CHANNEL_ID,DiscordKeys.GUILD_ID,DiscordKeys.MEMBER,DiscordKeys.STARTED,DiscordKeys.STOPPED,DiscordKeys.TIMESTAMP,DiscordKeys.USER,DiscordKeys.USER_ID,])

Const keysUser

keysUser: BaseSet<string> = new BaseSet<string>([DiscordKeys.AVATAR,DiscordKeys.BOT,DiscordKeys.DISCRIMINATOR,DiscordKeys.ID,DiscordKeys.PUBLIC_FLAGS,DiscordKeys.SYSTEM,DiscordKeys.USERNAME,])

Const keysUserExtended

keysUserExtended: BaseSet<string> = new BaseSet<string>([...keysUserWithFlags,DiscordKeys.EMAIL,DiscordKeys.LOCALE,DiscordKeys.MFA_ENABLED,DiscordKeys.PREMIUM_TYPE,DiscordKeys.VERIFIED,])

Const keysUserMe

keysUserMe: BaseSet<string> = new BaseSet<string>([...keysUserExtended,DiscordKeys.ANALYTICS_TOKEN,DiscordKeys.PHONE,])

Const keysUserWithFlags

keysUserWithFlags: BaseSet<string> = new BaseSet<string>([...keysUser,DiscordKeys.FLAGS,])

Const keysUserWithToken

keysUserWithToken: BaseSet<string> = new BaseSet<string>([...keysUser,DiscordKeys.TOKEN,])

Const keysVoiceCall

keysVoiceCall: BaseSet<string> = new BaseSet<string>([DiscordKeys.CHANNEL_ID,DiscordKeys.MESSAGE_ID,DiscordKeys.REGION,DiscordKeys.RINGING,DiscordKeys.UNAVAILABLE,DiscordKeys.VOICE_STATES,])

Const keysVoiceRegion

keysVoiceRegion: BaseSet<string> = new BaseSet<string>([DiscordKeys.CUSTOM,DiscordKeys.DEPRECATED,DiscordKeys.ID,DiscordKeys.NAME,DiscordKeys.OPTIMAL,DiscordKeys.VIP,])

Const keysVoiceState

keysVoiceState: BaseSet<string> = new BaseSet<string>([DiscordKeys.CHANNEL_ID,DiscordKeys.DEAF,DiscordKeys.GUILD_ID,DiscordKeys.MEMBER,DiscordKeys.MUTE,DiscordKeys.SELF_DEAF,DiscordKeys.SELF_MUTE,DiscordKeys.SELF_STREAM,DiscordKeys.SELF_VIDEO,DiscordKeys.SESSION_ID,DiscordKeys.SUPPRESS,DiscordKeys.USER_ID,])

Const keysWebhook

keysWebhook: BaseSet<string> = new BaseSet<string>([DiscordKeys.AVATAR,DiscordKeys.CHANNEL_ID,DiscordKeys.DISCRIMINATOR,DiscordKeys.GUILD_ID,DiscordKeys.ID,DiscordKeys.NAME,DiscordKeys.TOKEN,DiscordKeys.USER,])

Functions

addQuery

  • addQuery(url: string, query?: UrlQuery): string
  • Parameters

    Returns string

anyToCamelCase

  • anyToCamelCase(object: any, skip?: Array<string>): any
  • Parameters

    • object: any
    • Optional skip: Array<string>

    Returns any

bold

  • Parameters

    Returns string

checkPermissions

  • Parameters

    Returns boolean

codeblock

  • Parameters

    Returns string

codestring

  • Parameters

    Returns string

convertKey

  • convertKey(snake: string): string
  • Parameters

    • snake: string

    Returns string

createChannelFromData

  • Parameters

    Returns Channel

getAcronym

  • getAcronym(name?: undefined | string): string
  • Parameters

    • Optional name: undefined | string

    Returns string

getExceededRatelimits

  • Parameters

    Returns Array<object>

getFiles

  • getFiles(directory: string, subdirectories?: undefined | false | true): Promise<Array<string>>
  • Parameters

    • directory: string
    • Optional subdirectories: undefined | false | true

    Returns Promise<Array<string>>

getFormatFromHash

  • getFormatFromHash(hash: string, format?: null | string, defaultFormat?: string): string
  • Parameters

    • hash: string
    • Optional format: null | string
    • Default value defaultFormat: string = ImageFormats.PNG

    Returns string

hexToInt

  • hexToInt(hex: string): number
  • Parameters

    • hex: string

    Returns number

intToHex

  • intToHex(int: number, hashtag?: undefined | false | true): string
  • Parameters

    • int: number
    • Optional hashtag: undefined | false | true

    Returns string

intToRGB

  • intToRGB(int: number): object
  • Parameters

    • int: number

    Returns object

    • b: number
    • g: number
    • r: number

italics

  • Parameters

    Returns string

messageSystemContent

  • messageSystemContent(message: Message, content?: undefined | string): string
  • Parameters

    • message: Message
    • Optional content: undefined | string

    Returns string

regex

  • Parameters

    • type: string
    • content: string
    • Default value onlyFirst: boolean = false

    Returns DiscordRegexPayload

rgbToInt

  • rgbToInt(r: number, g: number, b: number): number
  • Parameters

    • r: number
    • g: number
    • b: number

    Returns number

spoiler

  • Parameters

    Returns string

strike

  • Parameters

    Returns string

toCamelCase

  • toCamelCase(value: string): string
  • Parameters

    • value: string

    Returns string

trueSlice

  • trueSlice(text: string, limit?: undefined | number): string
  • Parameters

    • text: string
    • Optional limit: undefined | number

    Returns string

underline

  • Parameters

    Returns string

url

  • url(text: string, url: string): string
  • Parameters

    • text: string
    • url: string

    Returns string

Generated using TypeDoc