MCPcopy
hub / github.com/codebymitch/TitanBot / containsDiscordRenderable

Function containsDiscordRenderable

src/utils/embeds.js:258–260  ·  view source on GitHub ↗
(content = '')

Source from the content-addressed store, hash-verified

256}
257
258function containsDiscordRenderable(content = '') {
259 return /<@!?&?\d+>|<#\d+>|\b\d{17,19}\b/.test(String(content));
260}
261
262function buildNotificationEmbed(title, body = '', color = 'primary') {
263 const defaultTitle = NOTIFICATION_DEFAULT_TITLES[color] || NOTIFICATION_DEFAULT_TITLES.primary;

Callers 1

buildNotificationEmbedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected