(title, body = '')
| 314 | |
| 315 | /** @param {string} titleOrBody - With one arg: body text. With two args: title and body. */ |
| 316 | export 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 | |
| 324 | export function formatUser(user) { |
| 325 | return `${user} (${user.tag} | ${user.id})`; |
no test coverage detected