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

Function infoEmbed

src/utils/embeds.js:307–313  ·  view source on GitHub ↗
(title, body = '')

Source from the content-addressed store, hash-verified

305
306/** @param {string} titleOrBody - With one arg: body text. With two args: title and body. */
307export function infoEmbed(title, body = '') {
308 if (arguments.length === 1) {
309 return buildNotificationEmbed('Information', title, 'info');
310 }
311
312 return buildNotificationEmbed(title || 'Information', body, 'info');
313}
314
315/** @param {string} titleOrBody - With one arg: body text. With two args: title and body. */
316export function warningEmbed(title, body = '') {

Callers 8

executeFunction · 0.90
handleRemoveFunction · 0.90
executeFunction · 0.90
handleViewNotesFunction · 0.90
handleClearNotesFunction · 0.90
notifyWizardStartedFunction · 0.90
askQuestionFunction · 0.90
runSetupWizardFunction · 0.90

Calls 1

buildNotificationEmbedFunction · 0.85

Tested by

no test coverage detected