MCPcopy Create free account
hub / github.com/ArrowM/Queue-Bot / mentionableMention

Function mentionableMention

src/utils/string.utils.ts:71–73  ·  view source on GitHub ↗
(mentionable: { isRole: boolean, subjectId: Snowflake })

Source from the content-addressed store, hash-verified

69}
70
71export function mentionableMention(mentionable: { isRole: boolean, subjectId: Snowflake }): string {
72 return mentionable.isRole ? roleMention(mentionable.subjectId) : userMention(mentionable.subjectId);
73}
74
75export function commandMention(commandName: string, subcommandName?: string) {
76 const liveCommand = ClientUtils.getLiveCommand(commandName);

Callers 1

mentionablesMentionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected