MCPcopy Index your code

hub / github.com/BetterDiscord/BetterDiscord / functions

Functions1,293 in github.com/BetterDiscord/BetterDiscord

↓ 290 callersFunctiont
(key: TranslationKey | (string & {}), replacements?: T, formatters?: Partial<Record<keyof T, (value: string) =
src/common/i18n.ts:143
↓ 96 callersMethodjoin
* SHows the guild join modal (if the addon has a guild) * @public
src/betterdiscord/modules/addonstore.ts:99
↓ 90 callersFunctionuseCallback
(callback: T)
src/betterdiscord/api/reactutils.ts:73
↓ 65 callersMethodget
(file: Files, key?: string)
src/betterdiscord/stores/json.ts:29
↓ 49 callersFunctionuseState
(initial: T | (() => T))
src/betterdiscord/api/reactutils.ts:60
↓ 42 callersMethodon
(event: string, callback: (...args: any[]) => void)
src/common/events.ts:11
↓ 40 callersMethodlog
* Logs used for basic loggin. * * @param {string} module - Name of the calling module. * @param {...any} message - Messages to have log
src/common/logger.ts:85
↓ 37 callersMethoderror
* Logs an error message. * * @param {string} pluginName Name of the calling module * @param {...any} message Messages to have logge
src/betterdiscord/api/logger.ts:76
↓ 34 callersMethodcreateElement
* Utility function to make creating DOM elements easier. Acts similarly * to `React.createElement` * * @param {string} tag HTML tag nam
src/betterdiscord/api/dom.ts:114
↓ 34 callersMethodcreateElement
(type: keyof HTMLElementTagNameMap, options: {[prop: string]: any;} = {}, ...children: Array<string | null | H
src/betterdiscord/ui/notices.ts:34
↓ 29 callersFunctioncallback
(value: any)
src/betterdiscord/ui/settings/group.tsx:64
↓ 27 callersMethodget
()
src/betterdiscord/modules/ipc.ts:73
↓ 24 callersMethodinitialize
()
src/betterdiscord/types/discord/modules.d.ts:41
↓ 23 callersFunctionuseMemo
(factory: () => T)
src/betterdiscord/api/reactutils.ts:57
↓ 22 callersMethodcreateElement
* Utility function to make creating DOM elements easier. * Has backward compatibility with previous createElement implementation.
src/betterdiscord/modules/dommanager.ts:56
↓ 22 callersFunctiongetByKeys
(...props: WithOptions<string, WebpackOptions>)
src/betterdiscord/api/webpack.ts:146
↓ 22 callersMethodshow
Shows the tooltip. Automatically called on mouseenter. Will attempt to flip if position was wrong.
src/betterdiscord/ui/tooltip.ts:101
↓ 21 callersMethodlog
* Logs used for basic loggin. * * @param {string} pluginName - Name of the calling module. * @param {...any} message - Messages to h
src/betterdiscord/api/logger.ts:108
↓ 21 callersMethodon
(collection: string, category: string, identifier: string, callback: (val: unknown) => void)
src/betterdiscord/stores/settings.ts:279
↓ 21 callersFunctionuseRef
(value: T | null = null)
src/betterdiscord/api/reactutils.ts:70
↓ 20 callersFunctionfindInTree
(tree: Record<string|number, unknown> | null, searchFilter: TreeFilter | string, {walkable = null, ignore = []
src/common/utils/findintree.ts:11
↓ 20 callersMethodgetElement
(e: Node | string, baseElement: Element = document.documentElement)
src/betterdiscord/modules/dommanager.ts:47
↓ 19 callersMethodremove
()
src/electron/main/modules/csp.ts:10
↓ 19 callersMethodstacktrace
* Logs an error using a collapsed error group with stacktrace. * * @param {string} pluginName - Name of the calling module. * @param
src/betterdiscord/api/logger.ts:61
↓ 18 callersMethodoff
(event: string, callback: (...args: any[]) => void)
src/common/events.ts:30
↓ 17 callersFunctionparseDeclarations
(moduleString: string, baseDepth = 1)
src/common/parseDeclarations.ts:34
↓ 16 callersFunctiongetNestedProp
(object: T, path: string, skipLast?: boolean)
src/common/utils/nested.ts:1
↓ 16 callersMethodshowConfirmationModal
* Shows a generic but very customizable confirmation modal with optional confirm and cancel callbacks. * @param {string} title - title of the mod
src/betterdiscord/ui/modals.ts:170
↓ 16 callersFunctionuseStateFromStores
(stores: StoreType | StoreType[], factory: () => T, deps?: React.DependencyList, areStateEqual: true | ((oldSt
src/betterdiscord/ui/hooks.ts:9
↓ 15 callersMethodafter
* This method patches onto another function, allowing your code to run afterwards. * Using this, you are able to modify the return value after th
src/betterdiscord/api/patcher.ts:118
↓ 15 callersMethodapply
(target, thisArg, argArray)
src/electron/main/modules/browserwindow.ts:94
↓ 15 callersMethodemitChange
()
src/betterdiscord/types/discord/modules.d.ts:44
↓ 15 callersMethodopen
()
src/editor/types/global.d.ts:12
↓ 15 callersMethodset
(file: Files, key: Record<string, unknown> | string, value?: unknown)
src/betterdiscord/stores/json.ts:37
↓ 14 callersFunctionuseEffect
()
src/betterdiscord/api/reactutils.ts:79
↓ 13 callersMethoddispatch
(payload: T)
src/betterdiscord/types/discord/modules.d.ts:77
↓ 13 callersMethodemit
(event: string, ...args: any[])
src/common/events.ts:17
↓ 13 callersMethodfrom
* @public * @param {BdWebGuild} guild * @returns {Guild}
src/betterdiscord/modules/addonstore.ts:58
↓ 13 callersFunctiongetModule
(filter: Webpack.ModuleFilter, options: Webpack.Options = {})
src/betterdiscord/webpack/searching.ts:38
↓ 13 callersMethodset
(value: boolean)
src/betterdiscord/modules/ipc.ts:70
↓ 12 callersMethodescapeID
(id: string)
src/betterdiscord/modules/dommanager.ts:40
↓ 12 callersFunctionextend
(target: T, ...extenders: object[])
src/common/utils/extend.ts:34
↓ 12 callersFunctionformatString
(string: string, values: Record<string, string | object | number | (() => string) | undefined | null>)
src/common/utils/format.ts:9
↓ 12 callersMethodrelaunch
(args?: string[])
src/betterdiscord/modules/ipc.ts:28
↓ 11 callersFunctiongetLazy
(filter: Webpack.ModuleFilter, options: Webpack.LazyOptions = {})
src/betterdiscord/webpack/lazy.ts:10
↓ 11 callersMethodhandle
(component: React.ComponentType<any>)
src/betterdiscord/modules/nodepatcher.ts:99
↓ 11 callersMethodshowAddonError
(error: AddonError)
src/betterdiscord/ui/modals.ts:214
↓ 10 callersMethodparseHTML
* Parses a string of HTML and returns the results. If the second parameter is true, * the parsed HTML will be returned as a document fragment {@s
src/betterdiscord/api/dom.ts:130
↓ 10 callersFunctionresolveColor
(color: string | number, hex = true)
src/betterdiscord/ui/settings/components/color.tsx:16
↓ 10 callersMethodset
(newPreload)
src/electron/main/modules/browserwindow.ts:54
↓ 10 callersFunctionuseContext
(context: React.Context<T>)
src/betterdiscord/api/reactutils.ts:76
↓ 10 callersMethoduseContext
(context: React.Context<T>)
src/betterdiscord/api/reactutils.ts:14
↓ 10 callersMethodwarn
* Logs a warning message. * * @param {string} pluginName - Name of the calling module. * @param {...any} message - Messages to have
src/betterdiscord/api/logger.ts:84
↓ 9 callersFunctionassign
(filter: T, args: any)
src/betterdiscord/webpack/filter.ts:4
↓ 9 callersMethodclose
* Closes the current opened context menu immediately.
src/betterdiscord/api/contextmenu.ts:513
↓ 9 callersMethoddelete
* Attempt to delete the local addon * @public * @param {boolean} shouldSkipConfirm Should skip the confirm to delete the addon
src/betterdiscord/modules/addonstore.ts:368
↓ 9 callersMethoderr
* Logs using error formatting. For logging an actual error object consider {@link module:Logger.stacktrace} * * @param {string} module - Nam
src/common/logger.ts:46
↓ 9 callersFunctiongetAllModules
(filter: Webpack.ModuleFilter, options: Webpack.Options = {})
src/betterdiscord/webpack/searching.ts:79
↓ 9 callersFunctiongetDeclaration
(module: Webpack.Module<any>, filter: Webpack.ExportedOnlyFilter)
src/betterdiscord/webpack/shared.ts:37
↓ 9 callersMethodpushChildPatch
* This method patches onto another function, allowing your code to run before, instead or after the original function. * Using this you are able
src/betterdiscord/modules/patcher.ts:268
↓ 9 callersFunctionshouldSkipModule
(exports: any)
src/betterdiscord/webpack/shared.ts:47
↓ 9 callersMethoduseState
(initial: T | (() => T))
src/betterdiscord/api/reactutils.ts:10
↓ 8 callersFunctiongetOptions
(args: WithOptions<T, B>, defaultOptions: B = {} as B)
src/betterdiscord/api/webpack.ts:8
↓ 8 callersMethodinjectStyle
(id: string, css: string)
src/betterdiscord/modules/dommanager.ts:94
↓ 8 callersMethodisInstalled
@public
src/betterdiscord/modules/addonstore.ts:382
↓ 8 callersMethodparseToReact
(str: string, inline = true)
src/betterdiscord/structs/markdown.ts:12
↓ 7 callersFunctionNumber
({value: initialValue, min, max, step = 1, onChange, disabled}: NumberInputProps)
src/betterdiscord/ui/settings/components/number.tsx:19
↓ 7 callersMethodaddChangeListener
(listener: () => void)
src/betterdiscord/types/discord/modules.d.ts:46
↓ 7 callersFunctioncallback
(_: unknown, state: boolean)
src/electron/preload/api/editor.ts:15
↓ 7 callersFunctioncomparator
(currentVersion: string, remoteVersion: string)
src/betterdiscord/structs/semver.ts:63
↓ 7 callersMethoddelete
* Deletes a piece of stored data. This is different than saving `null` or `undefined`. * * @param {string} pluginName Name of the plugin del
src/betterdiscord/api/data.ts:88
↓ 7 callersFunctiongetModule
(filter: ModuleFilter, options: WebpackOptions = {})
src/betterdiscord/api/webpack.ts:88
↓ 7 callersMethodgetSetting
(category: string, key: string)
src/electron/main/modules/betterdiscord.ts:23
↓ 7 callersFunctionisValidTranslation
(value: unknown)
src/common/i18n.ts:62
↓ 7 callersFunctionmakeException
()
src/betterdiscord/webpack/shared.ts:67
↓ 7 callersFunctionmapObject
(module: any, mappers: Record<keyof T, Webpack.ExportedOnlyFilter>)
src/betterdiscord/utils/object.ts:3
↓ 6 callersMethod_log
* Logs strings using different console levels and a module label. * * @param {string} module - Name of the calling module. * @param {an
src/common/logger.ts:94
↓ 6 callersMethoderror
* Alias for "err" * @param {string} module NAme of the calling module * @param {...any} message Messages to have logged.
src/common/logger.ts:53
↓ 6 callersFunctiongetByStrings
(...strings: WithOptions<string, WebpackOptions>)
src/betterdiscord/api/webpack.ts:157
↓ 6 callersFunctiongetString
(value: string | {toString(): string;})
src/betterdiscord/ui/settings/addoncard.tsx:61
↓ 6 callersMethodinit
()
src/electron/preload/discordnativepatch.ts:115
↓ 6 callersMethodinsertCSS
(newCss: string)
src/betterdiscord/builtins/customcss.ts:149
↓ 6 callersFunctionisModuleInvalid
(moduleToPatch: any)
src/betterdiscord/api/patcher.ts:24
↓ 6 callersFunctionjoin
(...paths: string[])
src/betterdiscord/data/web.ts:11
↓ 6 callersMethodopenPath
(path: string)
src/betterdiscord/modules/ipc.ts:65
↓ 6 callersFunctionrequest
(this: any, ...args: any[])
src/betterdiscord/polyfill/request.ts:84
↓ 6 callersFunctionsave
()
src/editor/script.ts:146
↓ 6 callersMethodshowGuildJoinModal
* Shows the guild join modal, to join invites * @param {string} code
src/betterdiscord/ui/modals.ts:253
↓ 6 callersFunctiontoPx
(value: number | string)
src/betterdiscord/ui/tooltip.ts:5
↓ 6 callersFunctionuseLayoutEffect
()
src/betterdiscord/api/reactutils.ts:80
↓ 6 callersMethodwrite
(contents: string)
src/editor/types/global.d.ts:13
↓ 5 callersMethod#_log
* Logs strings using different console levels and a module label. * * @param {string} module - Name of the calling module. * @param
src/betterdiscord/api/logger.ts:117
↓ 5 callersMethodafter
* This method patches onto another function, allowing your code to run after. * Using this, you are also able to modify the return value, using
src/betterdiscord/modules/patcher.ts:221
↓ 5 callersFunctiondebounce
(executor: T, delay: number)
src/common/utils/debounce.ts:9
↓ 5 callersMethoddebug
* Logs used for debugging purposes. * * @param {string} pluginName - Name of the calling module. * @param {...any} message - Message
src/betterdiscord/api/logger.ts:100
↓ 5 callersMethoddelete
(file: Files, key: string)
src/betterdiscord/stores/json.ts:51
↓ 5 callersMethodfocus
()
src/betterdiscord/types/discord/modules.d.ts:12
↓ 5 callersMethodgetJSON
()
src/electron/main/modules/betterdiscord.ts:44
↓ 5 callersMethodgetName
()
src/betterdiscord/types/discord/modules.d.ts:38
↓ 5 callersFunctiongetWithKey
(filter: ExportedOnlyFilter, options: WithKeyOptions = {})
src/betterdiscord/api/webpack.ts:80
next →1–100 of 1,293, ranked by callers