Set default success emoji to zep_check; add error_emoji support, mirroring success_emoji but for error messages
This commit is contained in:
parent
21fdd76863
commit
fd47ba9d69
3 changed files with 12 additions and 11 deletions
|
@ -264,12 +264,12 @@ export function convertMSToDelayString(ms: number): string {
|
|||
return result;
|
||||
}
|
||||
|
||||
export function successMessage(str, emoji) {
|
||||
return `${emoji} ${str}`;
|
||||
export function successMessage(str, emoji = "<:zep_check:650361014180904971>") {
|
||||
return emoji ? `${emoji} ${str}` : str;
|
||||
}
|
||||
|
||||
export function errorMessage(str) {
|
||||
return `⚠ ${str}`;
|
||||
export function errorMessage(str, emoji = "⚠") {
|
||||
return emoji ? `${emoji} ${str}` : str;
|
||||
}
|
||||
|
||||
export function get(obj, path, def?): any {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue