MCPcopy Create free account

hub / github.com/countr/countr / functions

Functions195 in github.com/countr/countr

↓ 36 callersMethodsafeSave
(this: GuildDocument)
src/database/models/Guild.ts:105
↓ 25 callersFunctionmsToHumanShortTime
(ms: number)
src/utils/time.ts:19
↓ 23 callersFunctionmsToHumanTime
(ms: number)
src/utils/time.ts:36
↓ 13 callersFunctionfitText
(string: string, length: number, includeTrail = true)
src/utils/text.ts:2
↓ 12 callersFunctionbytesToHumanReadable
(bytes: number)
src/utils/human.ts:2
↓ 10 callersFunctiondesignMessage
(stepIndex: number, flow: FlowSchema, flowIdentifier: string, document: GuildDocument, countingChannel: Counti
src/constants/editors/flows/index.ts:49
↓ 9 callersMethodformat
(converted: T, guild: Guild)
src/constants/properties/index.ts:20
↓ 9 callersFunctionreply
(interaction: AnySelectMenuInteraction<"cached"> | ButtonInteraction<"cached"> | ModalSubmitInteraction<"cache
src/constants/editors/properties.ts:94
↓ 8 callersFunctiongenerateId
(length = 6)
src/utils/crypto.ts:2
↓ 8 callersFunctiongetGuildDocument
(guildId: Snowflake, fromCache = true)
src/database/guild.ts:9
↓ 8 callersFunctionhandlePlural
(amount: number, name: string)
src/utils/text.ts:18
↓ 8 callersFunctionmsToHumanSeconds
(ms: number)
src/utils/time.ts:53
↓ 8 callersFunctionparseScores
(json: string)
src/utils/validation/scores.ts:17
↓ 8 callersFunctionreply
(optionsOrContent: MessageEditOptions & MessageReplyOptions | string, message: Message, existingReply?: Messag
src/handlers/mentionCommands.ts:63
↓ 7 callersMethodexplanation
(properties: TriggerPropertyData)
src/constants/triggers/index.ts:17
↓ 7 callersFunctionparseFlow
(json: string)
src/utils/validation/flow.ts:56
↓ 6 callersFunctioncalculatePermissionsForChannel
(channel: GuildChannel, member: GuildMember)
src/constants/discord.ts:62
↓ 6 callersFunctioncreateFileTransports
(name: string, levels: string[])
src/utils/logger/index.ts:10
↓ 6 callersMethodformat
(stored: number)
src/constants/numberSystems/index.ts:12
↓ 6 callersFunctionrefreshList
(document: GuildDocument, [countingChannelId, countingChannel]: [Snowflake, CountingChannelSchema], uniqueIden
src/commands/chatInput/flows/list.ts:21
↓ 6 callersFunctionshortInput
(description: string, minLength = 1, maxLength = 1000)
src/constants/properties/inputs/short.ts:5
↓ 5 callersFunctioncapitalizeFirst
(string: string)
src/utils/text.ts:8
↓ 5 callersFunctionformatListToHuman
(list: string[])
src/utils/text.ts:12
↓ 5 callersFunctiongenerateFinalResponse
(result: unknown, ms = -1, success = true, fileUpload = false)
src/commands/mention/eval.ts:47
↓ 5 callersFunctiongetWeek
(date = new Date())
src/utils/time.ts:4
↓ 5 callersFunctionhandlePositionRoles
({ countingChannel, document, member: { guild } }: CountingData | Pick<CountingData, "countingChannel" | "docu
src/handlers/counting/positionRoles.ts:5
↓ 5 callersFunctionmatchRegex
(regexString: string, text: string)
src/utils/regex.ts:6
↓ 5 callersFunctionpromptProperty
(interaction: AnySelectMenuInteraction<"cached"> | ButtonInteraction<"cached">, userId: Snowflake, property: T
src/constants/editors/properties.ts:6
↓ 4 callersMethodconvert
(userInput: U, guild: Guild)
src/constants/properties/index.ts:18
↓ 4 callersFunctioncreateModalTextInput
(options: Omit<TextInputComponentData, "type">)
src/handlers/interactions/modals.ts:49
↓ 4 callersFunctionflowEditor
(interaction: ButtonInteraction<"cached"> | CommandInteraction<"cached">, document: GuildDocument, countingCha
src/constants/editors/flows/index.ts:12
↓ 4 callersMethodgetDefaultCountingChannel
(this: GuildDocument)
src/database/models/Guild.ts:98
↓ 4 callersFunctiongetModalTextInput
(actionRows: ModalSubmitInteraction["components"], customId: string)
src/handlers/interactions/modals.ts:39
↓ 4 callersFunctionsetSafeTimeout
(callback: () => void, ms: number)
src/utils/safe.ts:4
↓ 3 callersMethodcheck
(data: CountingData, properties: TriggerPropertyData)
src/constants/triggers/index.ts:15
↓ 3 callersFunctioneditTriggerOrAction
(triggerOrAction: T, interaction: AnySelectMenuInteraction<"cached"> | ButtonInteraction<"cached">, userId: Sn
src/constants/editors/triggerOrActions.ts:13
↓ 3 callersFunctiongenerateModuleMenuReply
(name: keyof typeof modules, countingChannel: CountingChannelSchema, uniqueId: string)
src/commands/chatInput/modules.ts:107
↓ 3 callersFunctiongetActivatedFlows
({ flows }: CountingChannelSchema)
src/handlers/counting/flows.ts:37
↓ 3 callersFunctionqueueDelete
(messages: Message[])
src/handlers/counting/index.ts:91
↓ 3 callersFunctionrunFlows
(flows: FlowSchema[], countingData: CountingData)
src/handlers/counting/flows.ts:60
↓ 3 callersFunctiontestFlow
(flow: FlowSchema, countingData: CountingData, ignoreTriggersWithoutChecks = false)
src/handlers/counting/flows.ts:43
↓ 2 callersMethodcallback
(interaction: ButtonInteraction<"cached">)
src/handlers/interactions/components.ts:10
↓ 2 callersFunctioncheckRegex
(content: string, filters: CountingChannelSchema["filters"])
src/handlers/counting/regex.ts:4
↓ 2 callersFunctioncreateLeaderboard
(scores: Array<[Snowflake, number]>, highlightUserId?: Snowflake)
src/constants/scores.ts:4
↓ 2 callersFunctiondesktopView
(roles: Array<[number, Snowflake]>, countingChannel: CountingChannelSchema, uniqueIdentifier: string)
src/commands/chatInput/positionroles/list.ts:106
↓ 2 callersFunctiongenerateResponse
(result: unknown, ms = -1, success = true, includeResult = true, depth = 10, maxArrayLength = 100)
src/commands/mention/eval.ts:90
↓ 2 callersFunctiongetCombinedData
()
src/utils/cluster/manager/lists.ts:32
↓ 2 callersFunctiongetTriggerOrActionComponents
(triggerOrAction: "action" | "trigger", flow: FlowSchema, userId: Snowflake)
src/constants/editors/flows/components.ts:31
↓ 2 callersFunctiongetWeeklyCount
()
src/utils/cluster/manager/weeklyCount.ts:11
↓ 2 callersFunctionmentionCommandHandler
(message: Message<true>, document: GuildDocument)
src/handlers/mentionCommands.ts:22
↓ 2 callersFunctionmoduleListOverview
(ephemeral: boolean, document: GuildDocument, countingChannel: CountingChannelSchema, uniqueId: string, userId
src/commands/chatInput/modules.ts:21
↓ 2 callersFunctionnestCommands
(relativePath: string, type: "CHAT_INPUT" | "MENU")
src/handlers/interactions/index.ts:59
↓ 2 callersFunctionrefreshList
(interaction: ChatInputCommandInteraction<"cached">, ephemeral: boolean, document: GuildDocument, [countingCha
src/commands/chatInput/notifications/list.ts:19
↓ 2 callersFunctionreplaceUpdatedOrDeletedMessage
(message: Message | PartialMessage, document: GuildDocument, countingChannel: CountingChannelSchema, isDeleted
src/handlers/counting/replacement.ts:5
↓ 2 callersMethodrun
(data: CountingData, properties: ActionPropertyData)
src/constants/flows/actions/index.ts:24
↓ 2 callersFunctionupdateMessage
()
src/commands/chatInput/scores/fetch.ts:64
↓ 1 callersFunctionaddToCount
(count: number)
src/utils/cluster/index.ts:15
↓ 1 callersFunctionaddToWeeklyCount
(number: number)
src/utils/cluster/manager/weeklyCount.ts:6
↓ 1 callersFunctionautocompleteHandler
(interaction: AutocompleteInteraction<"cached">, document: GuildDocument)
src/handlers/interactions/autocompletes.ts:8
↓ 1 callersFunctionbulkDelete
(channel: CountingChannelAllowedChannelType)
src/handlers/counting/index.ts:108
↓ 1 callersMethodcallback
(interaction: ModalSubmitInteraction<"cached">)
src/handlers/interactions/modals.ts:6
↓ 1 callersFunctionchatInputCommandHandler
(interaction: ChatInputCommandInteraction<"cached">, document: GuildDocument)
src/handlers/interactions/chatInputCommands.ts:13
↓ 1 callersFunctioncheckBypass
(member: GuildMember, bypassableRoles: CountingChannelSchema["bypassableRoles"])
src/handlers/counting/bypass.ts:5
↓ 1 callersFunctioncomponentHandler
(interaction: AnySelectMenuInteraction<"cached"> | ButtonInteraction<"cached">)
src/handlers/interactions/components.ts:41
↓ 1 callersMethodcomponents
(flow: FlowSchema, userId: Snowflake)
src/constants/editors/flows/steps/index.ts:10
↓ 1 callersFunctioncontextMenuCommandHandler
(interaction: ContextMenuCommandInteraction<"cached">, document: GuildDocument)
src/handlers/interactions/contextMenuCommands.ts:12
↓ 1 callersMethodconvert
(input: string)
src/constants/numberSystems/index.ts:11
↓ 1 callersFunctioncountingHandler
(message: Message<true>, document: GuildDocument, countingChannel: CountingChannelSchema)
src/handlers/counting/index.ts:27
↓ 1 callersFunctiondesignEmbed
({ title, description, fields }: Step, flow: FlowSchema)
src/constants/editors/flows/index.ts:193
↓ 1 callersFunctionevalMath
(input: string)
src/constants/numberSystems/math.ts:16
↓ 1 callersFunctionfilterGuildsWithAccess
(guildIds: Snowflake[])
src/database/access.ts:8
↓ 1 callersFunctionformatScore
(userId: Snowflake, score: number, index: number, highlightUserId?: Snowflake)
src/constants/scores.ts:17
↓ 1 callersFunctionfromRoman
(input: string)
src/constants/numberSystems/roman.ts:15
↓ 1 callersFunctiongetAllStats
()
src/utils/cluster/index.ts:10
↓ 1 callersFunctiongetGlobalDocument
()
src/database/global.ts:5
↓ 1 callersFunctiongetPresence
()
src/utils/cluster/manager/presence.ts:5
↓ 1 callersFunctiongetSelectTypeFromComponentType
(componentType: ComponentType)
src/handlers/interactions/components.ts:63
↓ 1 callersMethodgetStatus
(flow: FlowSchema)
src/constants/editors/flows/steps/index.ts:13
↓ 1 callersFunctionhandleAccess
(client: Client<true>)
src/handlers/access.ts:9
↓ 1 callersFunctionhandleCommand
(message: Message<true>, document: GuildDocument, existingReply?: Message)
src/handlers/mentionCommands.ts:32
↓ 1 callersFunctionhandleFlows
(countingData: CountingData)
src/handlers/counting/flows.ts:9
↓ 1 callersFunctionhandleFlowsOnFail
(countingData: CountingData)
src/handlers/counting/flows.ts:17
↓ 1 callersFunctionhandleFlowsOnTimeout
(countingData: CountingData)
src/handlers/counting/flows.ts:27
↓ 1 callersFunctionhandleInteractions
(client: Client<true>)
src/handlers/interactions/index.ts:20
↓ 1 callersFunctionhandleLiveboard
(client: Client<true>)
src/handlers/liveboard.ts:6
↓ 1 callersFunctionhandleNotifications
(countingData: CountingData)
src/handlers/counting/notifications.ts:7
↓ 1 callersFunctionhandleTimeouts
(countingData: CountingData)
src/handlers/counting/timeouts.ts:9
↓ 1 callersFunctioninitializeWebsocket
(client: Client)
src/utils/cluster/index.ts:19
↓ 1 callersFunctioninviteUrl
(client: Client)
src/constants/links.ts:24
↓ 1 callersFunctionmobileView
(roles: Array<[number, Snowflake]>, countingChannel: CountingChannelSchema, uniqueIdentifier: string)
src/commands/chatInput/positionroles/list.ts:165
↓ 1 callersFunctionmodalHandler
(interaction: ModalSubmitInteraction<"cached">)
src/handlers/interactions/modals.ts:12
↓ 1 callersFunctionmoduleDetails
(interaction: StringSelectMenuInteraction, ephemeral: boolean, document: GuildDocument, countingChannel: Count
src/commands/chatInput/modules.ts:66
↓ 1 callersFunctionparagraphInput
(description: string, minLength = 1, maxLength = 2000)
src/constants/properties/inputs/paragraph.ts:5
↓ 1 callersFunctionprepareGuild
(guild: Guild)
src/handlers/prepareGuilds/index.ts:7
↓ 1 callersFunctionqueue
(member: GuildMember, countingData: CountingData, notificationId: string)
src/handlers/counting/notifications.ts:18
↓ 1 callersFunctionregisterCommands
(client: Client<true>)
src/handlers/interactions/index.ts:48
↓ 1 callersFunctionrepostMessage
(message: Message<true>, member: GuildMember, countingChannel: CountingChannelSchema)
src/handlers/counting/repost/index.ts:7
↓ 1 callersFunctionrepostWithEmbed
(message: Message<true>)
src/handlers/counting/repost/embed.ts:5
↓ 1 callersFunctionrepostWithReposting
(message: Message<true>)
src/handlers/counting/repost/reposting.ts:5
↓ 1 callersFunctionrepostWithWebhook
(message: Message<true>, member: GuildMember, secondTry = false)
src/handlers/counting/repost/webhook.ts:9
next →1–100 of 195, ranked by callers