Set default success emoji to zep_check; add error_emoji support, mirroring success_emoji but for error messages

This commit is contained in:
Dragory 2020-01-12 13:44:31 +02:00
parent 21fdd76863
commit fd47ba9d69
3 changed files with 12 additions and 11 deletions

View file

@ -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 {