Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/countr/countr
/ functions
Functions
195 in github.com/countr/countr
⨍
Functions
195
◇
Types & classes
50
↓ 36 callers
Method
safeSave
(this: GuildDocument)
src/database/models/Guild.ts:105
↓ 25 callers
Function
msToHumanShortTime
(ms: number)
src/utils/time.ts:19
↓ 23 callers
Function
msToHumanTime
(ms: number)
src/utils/time.ts:36
↓ 13 callers
Function
fitText
(string: string, length: number, includeTrail = true)
src/utils/text.ts:2
↓ 12 callers
Function
bytesToHumanReadable
(bytes: number)
src/utils/human.ts:2
↓ 10 callers
Function
designMessage
(stepIndex: number, flow: FlowSchema, flowIdentifier: string, document: GuildDocument, countingChannel: Counti
src/constants/editors/flows/index.ts:49
↓ 9 callers
Method
format
(converted: T, guild: Guild)
src/constants/properties/index.ts:20
↓ 9 callers
Function
reply
(interaction: AnySelectMenuInteraction<"cached"> | ButtonInteraction<"cached"> | ModalSubmitInteraction<"cache
src/constants/editors/properties.ts:94
↓ 8 callers
Function
generateId
(length = 6)
src/utils/crypto.ts:2
↓ 8 callers
Function
getGuildDocument
(guildId: Snowflake, fromCache = true)
src/database/guild.ts:9
↓ 8 callers
Function
handlePlural
(amount: number, name: string)
src/utils/text.ts:18
↓ 8 callers
Function
msToHumanSeconds
(ms: number)
src/utils/time.ts:53
↓ 8 callers
Function
parseScores
(json: string)
src/utils/validation/scores.ts:17
↓ 8 callers
Function
reply
(optionsOrContent: MessageEditOptions & MessageReplyOptions | string, message: Message, existingReply?: Messag
src/handlers/mentionCommands.ts:63
↓ 7 callers
Method
explanation
(properties: TriggerPropertyData)
src/constants/triggers/index.ts:17
↓ 7 callers
Function
parseFlow
(json: string)
src/utils/validation/flow.ts:56
↓ 6 callers
Function
calculatePermissionsForChannel
(channel: GuildChannel, member: GuildMember)
src/constants/discord.ts:62
↓ 6 callers
Function
createFileTransports
(name: string, levels: string[])
src/utils/logger/index.ts:10
↓ 6 callers
Method
format
(stored: number)
src/constants/numberSystems/index.ts:12
↓ 6 callers
Function
refreshList
(document: GuildDocument, [countingChannelId, countingChannel]: [Snowflake, CountingChannelSchema], uniqueIden
src/commands/chatInput/flows/list.ts:21
↓ 6 callers
Function
shortInput
(description: string, minLength = 1, maxLength = 1000)
src/constants/properties/inputs/short.ts:5
↓ 5 callers
Function
capitalizeFirst
(string: string)
src/utils/text.ts:8
↓ 5 callers
Function
formatListToHuman
(list: string[])
src/utils/text.ts:12
↓ 5 callers
Function
generateFinalResponse
(result: unknown, ms = -1, success = true, fileUpload = false)
src/commands/mention/eval.ts:47
↓ 5 callers
Function
getWeek
(date = new Date())
src/utils/time.ts:4
↓ 5 callers
Function
handlePositionRoles
({ countingChannel, document, member: { guild } }: CountingData | Pick<CountingData, "countingChannel" | "docu
src/handlers/counting/positionRoles.ts:5
↓ 5 callers
Function
matchRegex
(regexString: string, text: string)
src/utils/regex.ts:6
↓ 5 callers
Function
promptProperty
(interaction: AnySelectMenuInteraction<"cached"> | ButtonInteraction<"cached">, userId: Snowflake, property: T
src/constants/editors/properties.ts:6
↓ 4 callers
Method
convert
(userInput: U, guild: Guild)
src/constants/properties/index.ts:18
↓ 4 callers
Function
createModalTextInput
(options: Omit<TextInputComponentData, "type">)
src/handlers/interactions/modals.ts:49
↓ 4 callers
Function
flowEditor
(interaction: ButtonInteraction<"cached"> | CommandInteraction<"cached">, document: GuildDocument, countingCha
src/constants/editors/flows/index.ts:12
↓ 4 callers
Method
getDefaultCountingChannel
(this: GuildDocument)
src/database/models/Guild.ts:98
↓ 4 callers
Function
getModalTextInput
(actionRows: ModalSubmitInteraction["components"], customId: string)
src/handlers/interactions/modals.ts:39
↓ 4 callers
Function
setSafeTimeout
(callback: () => void, ms: number)
src/utils/safe.ts:4
↓ 3 callers
Method
check
(data: CountingData, properties: TriggerPropertyData)
src/constants/triggers/index.ts:15
↓ 3 callers
Function
editTriggerOrAction
(triggerOrAction: T, interaction: AnySelectMenuInteraction<"cached"> | ButtonInteraction<"cached">, userId: Sn
src/constants/editors/triggerOrActions.ts:13
↓ 3 callers
Function
generateModuleMenuReply
(name: keyof typeof modules, countingChannel: CountingChannelSchema, uniqueId: string)
src/commands/chatInput/modules.ts:107
↓ 3 callers
Function
getActivatedFlows
({ flows }: CountingChannelSchema)
src/handlers/counting/flows.ts:37
↓ 3 callers
Function
queueDelete
(messages: Message[])
src/handlers/counting/index.ts:91
↓ 3 callers
Function
runFlows
(flows: FlowSchema[], countingData: CountingData)
src/handlers/counting/flows.ts:60
↓ 3 callers
Function
testFlow
(flow: FlowSchema, countingData: CountingData, ignoreTriggersWithoutChecks = false)
src/handlers/counting/flows.ts:43
↓ 2 callers
Method
callback
(interaction: ButtonInteraction<"cached">)
src/handlers/interactions/components.ts:10
↓ 2 callers
Function
checkRegex
(content: string, filters: CountingChannelSchema["filters"])
src/handlers/counting/regex.ts:4
↓ 2 callers
Function
createLeaderboard
(scores: Array<[Snowflake, number]>, highlightUserId?: Snowflake)
src/constants/scores.ts:4
↓ 2 callers
Function
desktopView
(roles: Array<[number, Snowflake]>, countingChannel: CountingChannelSchema, uniqueIdentifier: string)
src/commands/chatInput/positionroles/list.ts:106
↓ 2 callers
Function
generateResponse
(result: unknown, ms = -1, success = true, includeResult = true, depth = 10, maxArrayLength = 100)
src/commands/mention/eval.ts:90
↓ 2 callers
Function
getCombinedData
()
src/utils/cluster/manager/lists.ts:32
↓ 2 callers
Function
getTriggerOrActionComponents
(triggerOrAction: "action" | "trigger", flow: FlowSchema, userId: Snowflake)
src/constants/editors/flows/components.ts:31
↓ 2 callers
Function
getWeeklyCount
()
src/utils/cluster/manager/weeklyCount.ts:11
↓ 2 callers
Function
mentionCommandHandler
(message: Message<true>, document: GuildDocument)
src/handlers/mentionCommands.ts:22
↓ 2 callers
Function
moduleListOverview
(ephemeral: boolean, document: GuildDocument, countingChannel: CountingChannelSchema, uniqueId: string, userId
src/commands/chatInput/modules.ts:21
↓ 2 callers
Function
nestCommands
(relativePath: string, type: "CHAT_INPUT" | "MENU")
src/handlers/interactions/index.ts:59
↓ 2 callers
Function
refreshList
(interaction: ChatInputCommandInteraction<"cached">, ephemeral: boolean, document: GuildDocument, [countingCha
src/commands/chatInput/notifications/list.ts:19
↓ 2 callers
Function
replaceUpdatedOrDeletedMessage
(message: Message | PartialMessage, document: GuildDocument, countingChannel: CountingChannelSchema, isDeleted
src/handlers/counting/replacement.ts:5
↓ 2 callers
Method
run
(data: CountingData, properties: ActionPropertyData)
src/constants/flows/actions/index.ts:24
↓ 2 callers
Function
updateMessage
()
src/commands/chatInput/scores/fetch.ts:64
↓ 1 callers
Function
addToCount
(count: number)
src/utils/cluster/index.ts:15
↓ 1 callers
Function
addToWeeklyCount
(number: number)
src/utils/cluster/manager/weeklyCount.ts:6
↓ 1 callers
Function
autocompleteHandler
(interaction: AutocompleteInteraction<"cached">, document: GuildDocument)
src/handlers/interactions/autocompletes.ts:8
↓ 1 callers
Function
bulkDelete
(channel: CountingChannelAllowedChannelType)
src/handlers/counting/index.ts:108
↓ 1 callers
Method
callback
(interaction: ModalSubmitInteraction<"cached">)
src/handlers/interactions/modals.ts:6
↓ 1 callers
Function
chatInputCommandHandler
(interaction: ChatInputCommandInteraction<"cached">, document: GuildDocument)
src/handlers/interactions/chatInputCommands.ts:13
↓ 1 callers
Function
checkBypass
(member: GuildMember, bypassableRoles: CountingChannelSchema["bypassableRoles"])
src/handlers/counting/bypass.ts:5
↓ 1 callers
Function
componentHandler
(interaction: AnySelectMenuInteraction<"cached"> | ButtonInteraction<"cached">)
src/handlers/interactions/components.ts:41
↓ 1 callers
Method
components
(flow: FlowSchema, userId: Snowflake)
src/constants/editors/flows/steps/index.ts:10
↓ 1 callers
Function
contextMenuCommandHandler
(interaction: ContextMenuCommandInteraction<"cached">, document: GuildDocument)
src/handlers/interactions/contextMenuCommands.ts:12
↓ 1 callers
Method
convert
(input: string)
src/constants/numberSystems/index.ts:11
↓ 1 callers
Function
countingHandler
(message: Message<true>, document: GuildDocument, countingChannel: CountingChannelSchema)
src/handlers/counting/index.ts:27
↓ 1 callers
Function
designEmbed
({ title, description, fields }: Step, flow: FlowSchema)
src/constants/editors/flows/index.ts:193
↓ 1 callers
Function
evalMath
(input: string)
src/constants/numberSystems/math.ts:16
↓ 1 callers
Function
filterGuildsWithAccess
(guildIds: Snowflake[])
src/database/access.ts:8
↓ 1 callers
Function
formatScore
(userId: Snowflake, score: number, index: number, highlightUserId?: Snowflake)
src/constants/scores.ts:17
↓ 1 callers
Function
fromRoman
(input: string)
src/constants/numberSystems/roman.ts:15
↓ 1 callers
Function
getAllStats
()
src/utils/cluster/index.ts:10
↓ 1 callers
Function
getGlobalDocument
()
src/database/global.ts:5
↓ 1 callers
Function
getPresence
()
src/utils/cluster/manager/presence.ts:5
↓ 1 callers
Function
getSelectTypeFromComponentType
(componentType: ComponentType)
src/handlers/interactions/components.ts:63
↓ 1 callers
Method
getStatus
(flow: FlowSchema)
src/constants/editors/flows/steps/index.ts:13
↓ 1 callers
Function
handleAccess
(client: Client<true>)
src/handlers/access.ts:9
↓ 1 callers
Function
handleCommand
(message: Message<true>, document: GuildDocument, existingReply?: Message)
src/handlers/mentionCommands.ts:32
↓ 1 callers
Function
handleFlows
(countingData: CountingData)
src/handlers/counting/flows.ts:9
↓ 1 callers
Function
handleFlowsOnFail
(countingData: CountingData)
src/handlers/counting/flows.ts:17
↓ 1 callers
Function
handleFlowsOnTimeout
(countingData: CountingData)
src/handlers/counting/flows.ts:27
↓ 1 callers
Function
handleInteractions
(client: Client<true>)
src/handlers/interactions/index.ts:20
↓ 1 callers
Function
handleLiveboard
(client: Client<true>)
src/handlers/liveboard.ts:6
↓ 1 callers
Function
handleNotifications
(countingData: CountingData)
src/handlers/counting/notifications.ts:7
↓ 1 callers
Function
handleTimeouts
(countingData: CountingData)
src/handlers/counting/timeouts.ts:9
↓ 1 callers
Function
initializeWebsocket
(client: Client)
src/utils/cluster/index.ts:19
↓ 1 callers
Function
inviteUrl
(client: Client)
src/constants/links.ts:24
↓ 1 callers
Function
mobileView
(roles: Array<[number, Snowflake]>, countingChannel: CountingChannelSchema, uniqueIdentifier: string)
src/commands/chatInput/positionroles/list.ts:165
↓ 1 callers
Function
modalHandler
(interaction: ModalSubmitInteraction<"cached">)
src/handlers/interactions/modals.ts:12
↓ 1 callers
Function
moduleDetails
(interaction: StringSelectMenuInteraction, ephemeral: boolean, document: GuildDocument, countingChannel: Count
src/commands/chatInput/modules.ts:66
↓ 1 callers
Function
paragraphInput
(description: string, minLength = 1, maxLength = 2000)
src/constants/properties/inputs/paragraph.ts:5
↓ 1 callers
Function
prepareGuild
(guild: Guild)
src/handlers/prepareGuilds/index.ts:7
↓ 1 callers
Function
queue
(member: GuildMember, countingData: CountingData, notificationId: string)
src/handlers/counting/notifications.ts:18
↓ 1 callers
Function
registerCommands
(client: Client<true>)
src/handlers/interactions/index.ts:48
↓ 1 callers
Function
repostMessage
(message: Message<true>, member: GuildMember, countingChannel: CountingChannelSchema)
src/handlers/counting/repost/index.ts:7
↓ 1 callers
Function
repostWithEmbed
(message: Message<true>)
src/handlers/counting/repost/embed.ts:5
↓ 1 callers
Function
repostWithReposting
(message: Message<true>)
src/handlers/counting/repost/reposting.ts:5
↓ 1 callers
Function
repostWithWebhook
(message: Message<true>, member: GuildMember, secondTry = false)
src/handlers/counting/repost/webhook.ts:9
next →
1–100 of 195, ranked by callers