JSDoc, toast capitalization

This commit is contained in:
Cohee
2024-06-11 09:55:37 +03:00
parent 75512842d0
commit abed49c277

View File

@ -2379,19 +2379,19 @@ function setFlatModeCallback() {
} }
/** /**
* * Sets a persona name and optionally an avatar.
* @param {{mode: 'lookup' | 'temp' | 'all'}} namedArgs * @param {{mode: 'lookup' | 'temp' | 'all'}} namedArgs Named arguments
* @param {string} name * @param {string} name Name to set
* @returns * @returns {void}
*/ */
function setNameCallback({ mode = 'all' }, name) { function setNameCallback({ mode = 'all' }, name) {
if (!name) { if (!name) {
toastr.warning('you must specify a name to change to'); toastr.warning('You must specify a name to change to');
return; return;
} }
if (!['lookup', 'temp', 'all'].includes(mode)) { if (!['lookup', 'temp', 'all'].includes(mode)) {
toastr.warning('mode must be one of "lookup", "temp" or "all"'); toastr.warning('Mode must be one of "lookup", "temp" or "all"');
return; return;
} }