Fix naming inconsistencies

5c3b799d6589539d6804b74733bad6f1a7dedd9e

Wolfsblvt <wolfsblvt@gmx.de>

1 files changed, +5 -5Showing whitespace changes
public/scripts/slash-commands.js+5 -5
@@ -746,14 +746,14 @@ export function initDefaultSlashCommands() {
746746 ],
747747 }),
748748 SlashCommandNamedArgument.fromProps({
749749 name: 'timeOuttimeout',
750750 description: 'time in milliseconds to display the toast message. Set this and \'extendedTimeout\' to 0 to show indefinitely until dismissed.',
751751 typeList: [ARGUMENT_TYPE.NUMBER],
752752 defaultValue: `${toastr.options.timeOut}`,
753753 }),
754754 SlashCommandNamedArgument.fromProps({
755755 name: 'extendedTimeout',
756756 description: 'time in milliseconds to display the toast message. Set this and \'timeOuttimeout\' to 0 to show indefinitely until dismissed.',
757757 typeList: [ARGUMENT_TYPE.NUMBER],
758758 defaultValue: `${toastr.options.extendedTimeOut}`,
759759 }),
@@ -1967,7 +1967,7 @@ async function generateCallback(args, value) {
19671967
19681968/**
19691969 *
19701970 * @param {{title?: string, severity?: string, timeOuttimeout?: string, extendedTimeOutextendedTimeout?: string, preventDuplicates?: string, awaitDismissal?: string}} args - named arguments from the slash command
19711971 * @param {string} value - The string to echo (unnamed argument from the slash command)
19721972 * @returns {Promise<string>} The text that was echoed
19731973 */
@@ -1988,8 +1988,8 @@ async function echoCallback(args, value) {
19881988
19891989 /** @type {ToastrOptions} */
19901990 const options = {};
19911991 if (args.timeOuttimeout && !isNaN(parseInt(args.timeOuttimeout))) options.timeOut = parseInt(args.timeOuttimeout);
19921992 if (args.extendedTimeOutextendedTimeout && !isNaN(parseInt(args.extendedTimeOutextendedTimeout))) options.extendedTimeOut = parseInt(args.extendedTimeOutextendedTimeout);
19931993 if (isTrueBoolean(args.preventDuplicates)) options.preventDuplicates = true;
19941994
19951995 // Prepare possible await handling