(title, body = '')
| 305 | |
| 306 | /** @param {string} titleOrBody - With one arg: body text. With two args: title and body. */ |
| 307 | export 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. */ |
| 316 | export function warningEmbed(title, body = '') { |
no test coverage detected