Options
All
  • Public
  • Public/Protected
  • All
Menu

Module metro/common

Index

Variables

Assets: { getAssetByID: any; registerAsset: any } = window.enmity.modules.common.Assets

Type declaration

Avatars: { BOT_AVATARS: { ENMITY: string; clyde: number }; DEFAULT_AVATARS: number[]; DEFAULT_CHANNEL_ICON: number; DEFAULT_GROUP_DM_AVATARS: number[]; canUseWebp: any; ensureAvatarSource: any; getDefaultUserAvatarURL: any } = window.enmity.modules.common.Avatars

Type declaration

  • BOT_AVATARS: { ENMITY: string; clyde: number }
    • ENMITY: string
    • clyde: number
  • DEFAULT_AVATARS: number[]
  • DEFAULT_CHANNEL_ICON: number
  • DEFAULT_GROUP_DM_AVATARS: number[]
  • canUseWebp:function
    • canUseWebp(): boolean
  • ensureAvatarSource:function
    • ensureAvatarSource(): boolean
  • getDefaultUserAvatarURL:function
    • getDefaultUserAvatarURL(...args: any): string
Clipboard: { getString: any; setString: any } = window.enmity.modules.common.Clipboard

Type declaration

Clyde: { createBotMessage: any; default: any; userRecordToServer: any } = window.enmity.modules.common.Clyde

Type declaration

  • createBotMessage:function
    • createBotMessage(...args: any): Message
  • default:function
  • userRecordToServer:function
    • userRecordToServer(...args: any): { avatar: string; bot: any; discriminator: string | number; id: number; username: string }
    • Parameters

      • Rest ...args: any

      Returns { avatar: string; bot: any; discriminator: string | number; id: number; username: string }

      • avatar: string
      • bot: any
      • discriminator: string | number
      • id: number
      • username: string
ColorMap: Record<string, any> = window.enmity.modules.common.ColorMap
Components: { Forms: { AutoCapitalizeModes: ComponentType<{}>; ClearButtonVisibility: ComponentType<{}>; Form: ComponentType<{}>; FormArrow: ComponentType<{}>; FormCTA: ComponentType<{}>; FormCTAButton: ComponentType<{}>; FormCardSection: ComponentType<{}>; FormCheckbox: ComponentType<{}>; FormCheckmark: ComponentType<{}>; FormDivider: ComponentType<{}>; FormHint: ComponentType<{}>; FormIcon: ComponentType<{}>; FormInput: ComponentType<{}>; FormLabel: ComponentType<{}>; FormRadio: ComponentType<{}>; FormRow: ComponentType<{}>; FormSection: ComponentType<{}>; FormSelect: ComponentType<{}>; FormSubLabel: ComponentType<{}>; FormSwitch: ComponentType<{}>; FormSwitchRow: ComponentType<{}>; FormTernaryCheckBox: ComponentType<{}>; FormText: ComponentType<{}>; FormTextColors: ComponentType<{}>; FormTextSizes: ComponentType<{}>; FormTitle: ComponentType<{}>; KeyboardTypes: ComponentType<{}>; TernaryCheckBoxStates: ComponentType<{}> }; General: { Alert: AlertStatic; Button: typeof Button; FlatList: typeof FlatList; Image: typeof Image; ImageBackground: typeof ImageBackground; KeyboardAvoidingView: typeof KeyboardAvoidingView; Modal: typeof Modal; Pressable: ForwardRefExoticComponent<PressableProps & RefAttributes<View>>; RefreshControl: typeof RefreshControl; ScrollView: typeof ScrollView; SectionList: typeof SectionList; StatusBar: typeof StatusBar; StyleSheet: typeof StyleSheet; Switch: typeof StyleSheet; Text: typeof Text; TextInput: typeof TextInput; Touchable: { TOUCH_TARGET_DEBUG: boolean; renderDebugView: any }; TouchableHighlight: typeof TouchableHighlight; TouchableOpacity: typeof TouchableOpacity; TouchableWithoutFeedback: typeof TouchableWithoutFeedback; View: typeof View; VirtualizedList: typeof VirtualizedList } } = window.enmity.modules.common.Components

Type declaration

  • Forms: { AutoCapitalizeModes: ComponentType<{}>; ClearButtonVisibility: ComponentType<{}>; Form: ComponentType<{}>; FormArrow: ComponentType<{}>; FormCTA: ComponentType<{}>; FormCTAButton: ComponentType<{}>; FormCardSection: ComponentType<{}>; FormCheckbox: ComponentType<{}>; FormCheckmark: ComponentType<{}>; FormDivider: ComponentType<{}>; FormHint: ComponentType<{}>; FormIcon: ComponentType<{}>; FormInput: ComponentType<{}>; FormLabel: ComponentType<{}>; FormRadio: ComponentType<{}>; FormRow: ComponentType<{}>; FormSection: ComponentType<{}>; FormSelect: ComponentType<{}>; FormSubLabel: ComponentType<{}>; FormSwitch: ComponentType<{}>; FormSwitchRow: ComponentType<{}>; FormTernaryCheckBox: ComponentType<{}>; FormText: ComponentType<{}>; FormTextColors: ComponentType<{}>; FormTextSizes: ComponentType<{}>; FormTitle: ComponentType<{}>; KeyboardTypes: ComponentType<{}>; TernaryCheckBoxStates: ComponentType<{}> }
    • AutoCapitalizeModes: ComponentType<{}>
    • ClearButtonVisibility: ComponentType<{}>
    • Form: ComponentType<{}>
    • FormArrow: ComponentType<{}>
    • FormCTA: ComponentType<{}>
    • FormCTAButton: ComponentType<{}>
    • FormCardSection: ComponentType<{}>
    • FormCheckbox: ComponentType<{}>
    • FormCheckmark: ComponentType<{}>
    • FormDivider: ComponentType<{}>
    • FormHint: ComponentType<{}>
    • FormIcon: ComponentType<{}>
    • FormInput: ComponentType<{}>
    • FormLabel: ComponentType<{}>
    • FormRadio: ComponentType<{}>
    • FormRow: ComponentType<{}>
    • FormSection: ComponentType<{}>
    • FormSelect: ComponentType<{}>
    • FormSubLabel: ComponentType<{}>
    • FormSwitch: ComponentType<{}>
    • FormSwitchRow: ComponentType<{}>
    • FormTernaryCheckBox: ComponentType<{}>
    • FormText: ComponentType<{}>
    • FormTextColors: ComponentType<{}>
    • FormTextSizes: ComponentType<{}>
    • FormTitle: ComponentType<{}>
    • KeyboardTypes: ComponentType<{}>
    • TernaryCheckBoxStates: ComponentType<{}>
  • General: { Alert: AlertStatic; Button: typeof Button; FlatList: typeof FlatList; Image: typeof Image; ImageBackground: typeof ImageBackground; KeyboardAvoidingView: typeof KeyboardAvoidingView; Modal: typeof Modal; Pressable: ForwardRefExoticComponent<PressableProps & RefAttributes<View>>; RefreshControl: typeof RefreshControl; ScrollView: typeof ScrollView; SectionList: typeof SectionList; StatusBar: typeof StatusBar; StyleSheet: typeof StyleSheet; Switch: typeof StyleSheet; Text: typeof Text; TextInput: typeof TextInput; Touchable: { TOUCH_TARGET_DEBUG: boolean; renderDebugView: any }; TouchableHighlight: typeof TouchableHighlight; TouchableOpacity: typeof TouchableOpacity; TouchableWithoutFeedback: typeof TouchableWithoutFeedback; View: typeof View; VirtualizedList: typeof VirtualizedList }
Constants: any = window.enmity.modules.common.Constants
Dialog: { close: any; open: any; openLazy: any; show: any } = window.enmity.modules.common.Dialog

Type declaration

Dispatcher: { _currentDispatchActionType: string; _dependencyGraph: any; _lastID: number; _orderedActionHandlers: Record<string, any>; _orderedCallbackTokens: number[]; _processingWaitQueue: boolean; _subscriptions: Record<string, any>; _waitQueue: any[] } = window.enmity.modules.common.Dispatcher

Type declaration

  • _currentDispatchActionType: string
  • _dependencyGraph: any
  • _lastID: number
  • _orderedActionHandlers: Record<string, any>
  • _orderedCallbackTokens: number[]
  • _processingWaitQueue: boolean
  • _subscriptions: Record<string, any>
  • _waitQueue: any[]
Flux: { ActionBase: any; ActionHandlers: any; BatchedStoreListener: any; Dispatcher: any; Store: any; default: { PersistedStore: any; Store: any; initialized: boolean; DeviceSettingsStore: any; OfflineCacheStore: any; connectStores: any; destroy: any; initialize: any }; connectStores: any; useStateFromStores: any; useStateFromStoresArray: any; useStateFromStoresObject: any } = window.enmity.modules.common.Flux

Type declaration

  • ActionBase: any
  • ActionHandlers: any
  • BatchedStoreListener: any
  • Dispatcher: any
  • Store: any
  • default: { PersistedStore: any; Store: any; initialized: boolean; DeviceSettingsStore: any; OfflineCacheStore: any; connectStores: any; destroy: any; initialize: any }
    • PersistedStore: any
    • Store: any
    • initialized: boolean
    • DeviceSettingsStore:function
      • DeviceSettingsStore(...args: any): any
    • OfflineCacheStore:function
      • OfflineCacheStore(...args: any): any
    • connectStores:function
      • connectStores(...args: any): any
    • destroy:function
      • destroy(...args: any): any
    • initialize:function
      • initialize(...args: any): any
  • connectStores:function
    • connectStores(stores: any[], propsCallback: (...args: any) => any): any
    • Parameters

      • stores: any[]
      • propsCallback: (...args: any) => any
          • (...args: any): any
          • Parameters

            • Rest ...args: any

            Returns any

      Returns any

  • useStateFromStores:function
    • useStateFromStores(...args: any): any
  • useStateFromStoresArray:function
    • useStateFromStoresArray(...args: any): any
  • useStateFromStoresObject:function
    • useStateFromStoresObject(...args: any): any
Linking: { addListener: any; canOpenURL: any; getConstants: any; getInitialURL: any; openSettings: any; openURL: any; removeListeners: any; sendIntent: any } = window.enmity.modules.common.Linking

Type declaration

  • addListener:function
    • addListener(...args: any): any
  • canOpenURL:function
    • canOpenURL(...args: any): any
  • getConstants:function
    • getConstants(...args: any): any
  • getInitialURL:function
    • getInitialURL(...args: any): any
  • openSettings:function
    • openSettings(...args: any): any
  • openURL:function
    • openURL(...args: any): any
  • removeListeners:function
    • removeListeners(...args: any): any
  • sendIntent:function
    • sendIntent(...args: any): any
Locale: { Messages: Record<string, any>; _chosenLocale: string; _events: Record<string, any>; _eventsCount: number; _languages: Record<string, { code: string; enabled: string; englishName: string; name: string; postgresLang: string }>[]; _maxListeners: number; _provider: Record<string, any>; _requestedLocale: string; loadPromise: Promise<void>; _getMessages: any; _getParsedMessages: any; _handleNewListener: any } = window.enmity.modules.common.Locale

Type declaration

  • Messages: Record<string, any>
  • _chosenLocale: string
  • _events: Record<string, any>
  • _eventsCount: number
  • _languages: Record<string, { code: string; enabled: string; englishName: string; name: string; postgresLang: string }>[]
  • _maxListeners: number
  • _provider: Record<string, any>
  • _requestedLocale: string
  • loadPromise: Promise<void>
  • _getMessages:function
    • _getMessages(...args: any): any
  • _getParsedMessages:function
    • _getParsedMessages(...args: any): any
  • _handleNewListener:function
    • _handleNewListener(...args: any): any
Lodash: LoDashStatic = window.enmity.modules.common.Lodash
Logger: any = window.enmity.modules.common.Logger
Messages: { _sendMessage: any; _tryFetchMessagesCached: any; clearChannel: any; crosspostMessage: any; deleteMessage: any; dismissAutomatedMessage: any; editMessage: any; endEditMessage: any; fetchMessages: any; getSendMessageOptionsForReply: any; jumpToMessage: any; jumpToPresent: any; patchMessageAttachments: any; receiveMessage: any; revealMessage: any; sendBotMessage: any; sendClydeError: any; sendGreetMessage: any; sendInvite: any; sendMessage: any; sendStickers: any; sendVoiceChannelInvite: any; startEditMessage: any; suppressEmbeds: any; trackInvite: any; trackJump: any; truncateMessages: any; updateEditMessage: any } = window.enmity.modules.common.Messages

Type declaration

  • _sendMessage:function
    • _sendMessage(...args: any): void
  • _tryFetchMessagesCached:function
    • _tryFetchMessagesCached(...args: any): void
  • clearChannel:function
    • clearChannel(...args: any): void
  • crosspostMessage:function
    • crosspostMessage(...args: any): void
  • deleteMessage:function
    • deleteMessage(...args: any): void
  • dismissAutomatedMessage:function
    • dismissAutomatedMessage(...args: any): void
  • editMessage:function
    • editMessage(...args: any): void
  • endEditMessage:function
    • endEditMessage(...args: any): void
  • fetchMessages:function
    • fetchMessages(...args: any): void
  • getSendMessageOptionsForReply:function
    • getSendMessageOptionsForReply(...args: any): void
  • jumpToMessage:function
    • jumpToMessage(...args: any): void
  • jumpToPresent:function
    • jumpToPresent(...args: any): void
  • patchMessageAttachments:function
    • patchMessageAttachments(...args: any): void
  • receiveMessage:function
    • receiveMessage(...args: any): void
  • revealMessage:function
    • revealMessage(...args: any): void
  • sendBotMessage:function
    • sendBotMessage(...args: any): void
  • sendClydeError:function
    • sendClydeError(...args: any): void
  • sendGreetMessage:function
    • sendGreetMessage(...args: any): void
  • sendInvite:function
    • sendInvite(...args: any): void
  • sendMessage:function
    • sendMessage(...args: any): void
  • sendStickers:function
    • sendStickers(...args: any): void
  • sendVoiceChannelInvite:function
    • sendVoiceChannelInvite(...args: any): void
  • startEditMessage:function
    • startEditMessage(...args: any): void
  • suppressEmbeds:function
    • suppressEmbeds(...args: any): void
  • trackInvite:function
    • trackInvite(...args: any): void
  • trackJump:function
    • trackJump(...args: any): void
  • truncateMessages:function
    • truncateMessages(...args: any): void
  • updateEditMessage:function
    • updateEditMessage(...args: any): void
Moment: any = window.enmity.modules.common.Moment
Native: { BundleUpdaterManager: Record<string, any>; DCDDeviceManager: Record<string, any>; InfoDictionaryManager: Record<string, any> } = window.enmity.modules.common.Native

Type declaration

  • [key: string]: any
  • BundleUpdaterManager: Record<string, any>
  • DCDDeviceManager: Record<string, any>
  • InfoDictionaryManager: Record<string, any>
Navigation: any = window.enmity.modules.common.Navigation
NavigationNative: any = window.enmity.modules.common.NavigationNative
NavigationStack: any = window.enmity.modules.common.NavigationStack
Profiles: { connectAndOpen: any; connectOrLurkStage: any; connectToStage: any; navigateToStage: any; showUserProfile: any } = window.enmity.modules.common.Profiles

Type declaration

  • connectAndOpen:function
    • connectAndOpen(...args: any): any
  • connectOrLurkStage:function
    • connectOrLurkStage(...args: any): any
  • connectToStage:function
    • connectToStage(...args: any): any
  • navigateToStage:function
    • navigateToStage(...args: any): any
  • showUserProfile:function
    • showUserProfile(...args: any): any
REST: { V6OrEarlierAPIError: any; V8APIError: any; delete: any; get: any; getAPIBaseURL: any; patch: any; post: any; put: any } = window.enmity.modules.common.REST

Type declaration

  • V6OrEarlierAPIError:function
    • V6OrEarlierAPIError(...args: any): any
  • V8APIError:function
    • V8APIError(...args: any): any
  • delete:function
    • delete(...args: any): any
  • get:function
    • get(...args: any): any
  • getAPIBaseURL:function
    • getAPIBaseURL(...args: any): any
  • patch:function
    • patch(...args: any): any
  • post:function
    • post(...args: any): any
  • put:function
    • put(...args: any): any
React: typeof React = window.enmity.modules.common.React
SVG: { Circle: ComponentType<{}>; ClipPath: ComponentType<{}>; Defs: ComponentType<{}>; Ellipse: ComponentType<{}>; G: ComponentType<{}>; Image: ComponentType<{}>; Line: ComponentType<{}>; LinearGradient: ComponentType<{}>; Mask: ComponentType<{}>; Path: ComponentType<{}>; Pattern: ComponentType<{}>; Polygon: ComponentType<{}>; Polyline: ComponentType<{}>; RadialGradient: ComponentType<{}>; Rect: ComponentType<{}>; Stop: ComponentType<{}>; Svg: ComponentType<{}>; Symbol: ComponentType<{}>; TSpan: ComponentType<{}>; Text: ComponentType<{}>; TextPath: ComponentType<{}>; Use: ComponentType<{}>; default: ComponentType<{}> } = window.enmity.modules.common.SVG

Type declaration

  • Circle: ComponentType<{}>
  • ClipPath: ComponentType<{}>
  • Defs: ComponentType<{}>
  • Ellipse: ComponentType<{}>
  • G: ComponentType<{}>
  • Image: ComponentType<{}>
  • Line: ComponentType<{}>
  • LinearGradient: ComponentType<{}>
  • Mask: ComponentType<{}>
  • Path: ComponentType<{}>
  • Pattern: ComponentType<{}>
  • Polygon: ComponentType<{}>
  • Polyline: ComponentType<{}>
  • RadialGradient: ComponentType<{}>
  • Rect: ComponentType<{}>
  • Stop: ComponentType<{}>
  • Svg: ComponentType<{}>
  • Symbol: ComponentType<{}>
  • TSpan: ComponentType<{}>
  • Text: ComponentType<{}>
  • TextPath: ComponentType<{}>
  • Use: ComponentType<{}>
  • default: ComponentType<{}>
Scenes: { default: any } = window.enmity.modules.common.Scenes

Type declaration

Settings: { _settings: Record<string, any>; _sendObservations: any; clearWatch: any; get: any; set: any; watchKeys: any } = window.enmity.modules.common.Settings

Type declaration

  • _settings: Record<string, any>
  • _sendObservations:function
    • _sendObservations(...args: any): any
  • clearWatch:function
    • clearWatch(...args: any): any
  • get:function
    • get(...args: any): any
  • set:function
    • set(...args: any): any
  • watchKeys:function
    • watchKeys(...args: any): any
Storage: { _getKeys: any[]; _getRequests: any[]; _immediate: any; getAllKeys: string[]; clear: any; flushGetRequests: any; getItem: any; mergeItem: any; multiGet: any; multiMerge: any; multiRemove: any; multiSet: any; removeItem: any; setItem: any } = window.enmity.modules.common.Storage

Type declaration

  • _getKeys: any[]
  • _getRequests: any[]
  • _immediate: any
  • getAllKeys: string[]
  • clear:function
    • clear(...args: any): Promise<void>
  • flushGetRequests:function
    • flushGetRequests(...args: any): any
  • getItem:function
    • getItem(key: any): Promise<any>
  • mergeItem:function
    • mergeItem(...args: any): any
  • multiGet:function
    • multiGet(...args: any): any
  • multiMerge:function
    • multiMerge(...args: any): any
  • multiRemove:function
    • multiRemove(...args: any): any
  • multiSet:function
    • multiSet(...args: any): any
  • removeItem:function
    • removeItem(key: string): Promise<void>
  • setItem:function
    • setItem(key: string, item: any): Promise<void>
StyleSheet: { ThemeColorMap: Record<string, any>; createThemedStyleSheet: any; getThemedStylesheet: any } = window.enmity.modules.common.StyleSheet

Type declaration

  • ThemeColorMap: Record<string, any>
  • createThemedStyleSheet:function
    • createThemedStyleSheet(...args: any): any
  • getThemedStylesheet:function
    • getThemedStylesheet(...args: any): any
Theme: { contactSyncUpsellShown: any; customStatus: any; defaultGuildsRestricted: any; friendDiscoveryFlags: any; friendSourceFlags: any; guildFolders: any; guildPositions: any; isGuildRestricted: any; loadedFromRemote: boolean; locale: any; restrictedGuilds: any; status: any; theme: any; timezoneOffset: any; getAllSettings: any } = window.enmity.modules.common.Theme

Type declaration

  • contactSyncUpsellShown: any
  • customStatus: any
  • defaultGuildsRestricted: any
  • friendDiscoveryFlags: any
  • friendSourceFlags: any
  • guildFolders: any
  • guildPositions: any
  • isGuildRestricted: any
  • loadedFromRemote: boolean
  • locale: any
  • restrictedGuilds: any
  • status: any
  • theme: any
  • timezoneOffset: any
  • getAllSettings:function
    • getAllSettings(...args: any): any
Toasts: { close: any; open: any } = window.enmity.modules.common.Toasts

Type declaration

Token: { encryptAndStoreTokens: any; getToken: any; hideToken: any; init: any; removeToken: any; setToken: any; showToken: any } = window.enmity.modules.common.Token

Type declaration

  • encryptAndStoreTokens:function
    • encryptAndStoreTokens(...args: any): any
  • getToken:function
    • getToken(...args: any): any
  • hideToken:function
    • hideToken(...args: any): any
  • init:function
    • init(...args: any): any
  • removeToken:function
    • removeToken(...args: any): any
  • setToken:function
    • setToken(...args: any): any
  • showToken:function
    • showToken(...args: any): any
Users: { filter: any; findByTag: any; forEach: any; getCurrentUser: any; getUser: any; getUsers: any } = window.enmity.modules.common.Users

Type declaration

  • filter:function
    • filter(...args: any): any
  • findByTag:function
    • findByTag(...args: any): any
  • forEach:function
    • forEach(...args: any): any
  • getCurrentUser:function
    • getCurrentUser(...args: any): any
  • getUser:function
    • getUser(...args: any): any
  • getUsers:function
    • getUsers(...args: any): any

Generated using TypeDoc