MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / warningEmbed

Function warningEmbed

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

Source from the content-addressed store, hash-verified

314
315/** @param {string} titleOrBody - With one arg: body text. With two args: title and body. */
316export function warningEmbed(title, body = '') {
317 if (arguments.length === 1) {
318 return buildNotificationEmbed('Warning', title, 'warning');
319 }
320
321 return buildNotificationEmbed(title || 'Warning', body, 'warning');
322}
323
324export function formatUser(user) {
325 return `${user} (${user.tag} | ${user.id})`;

Callers 9

handleChannelDeletionFunction · 0.90
executeFunction · 0.90
crime.jsFile · 0.90
gamble.jsFile · 0.90
rob.jsFile · 0.90
beg.jsFile · 0.90
executeFunction · 0.90
handleSetupFunction · 0.90
runSetupWizardFunction · 0.90

Calls 1

buildNotificationEmbedFunction · 0.85

Tested by

no test coverage detected