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

Function successEmbed

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

Source from the content-addressed store, hash-verified

296
297/** @param {string} titleOrBody - With one arg: body text. With two args: title and body. */
298export function successEmbed(title, body = '') {
299 if (arguments.length === 1) {
300 return buildNotificationEmbed('Success', title, 'success');
301 }
302
303 return buildNotificationEmbed(title || 'Success', body, 'success');
304}
305
306/** @param {string} titleOrBody - With one arg: body text. With two args: title and body. */
307export function infoEmbed(title, body = '') {

Callers 15

executeFunction · 0.90
handleSetupSubcommandFunction · 0.90
handleNameTemplateModalFunction · 0.90
handleUserLimitModalFunction · 0.90
handleBitrateModalFunction · 0.90
handleChannelDeletionFunction · 0.90
executeFunction · 0.90
handleNameTemplateChangeFunction · 0.90
handleUserLimitChangeFunction · 0.90
handleBitrateChangeFunction · 0.90
handleRemoveTriggerFunction · 0.90
executeFunction · 0.90

Calls 1

buildNotificationEmbedFunction · 0.85

Tested by

no test coverage detected