Fix naming inconsistencies
| @@ -746,14 +746,14 @@ export function initDefaultSlashCommands() { | ||
| 746 | 746 | ], |
| 747 | 747 | }), |
| 748 | 748 | SlashCommandNamedArgument.fromProps({ |
| 749 | 749 | name: 'timeOuttimeout', |
| 750 | 750 | description: 'time in milliseconds to display the toast message. Set this and \'extendedTimeout\' to 0 to show indefinitely until dismissed.', |
| 751 | 751 | typeList: [ARGUMENT_TYPE.NUMBER], |
| 752 | 752 | defaultValue: `${toastr.options.timeOut}`, |
| 753 | 753 | }), |
| 754 | 754 | SlashCommandNamedArgument.fromProps({ |
| 755 | 755 | name: 'extendedTimeout', |
| 756 | 756 | description: 'time in milliseconds to display the toast message. Set this and \'timeOuttimeout\' to 0 to show indefinitely until dismissed.', |
| 757 | 757 | typeList: [ARGUMENT_TYPE.NUMBER], |
| 758 | 758 | defaultValue: `${toastr.options.extendedTimeOut}`, |
| 759 | 759 | }), |
| @@ -1967,7 +1967,7 @@ async function generateCallback(args, value) { | ||
| 1967 | 1967 | |
| 1968 | 1968 | /** |
| 1969 | 1969 | * |
| 1970 | 1970 | * @param {{title?: string, severity?: string, timeOuttimeout?: string, extendedTimeOutextendedTimeout?: string, preventDuplicates?: string, awaitDismissal?: string}} args - named arguments from the slash command |
| 1971 | 1971 | * @param {string} value - The string to echo (unnamed argument from the slash command) |
| 1972 | 1972 | * @returns {Promise<string>} The text that was echoed |
| 1973 | 1973 | */ |
| @@ -1988,8 +1988,8 @@ async function echoCallback(args, value) { | ||
| 1988 | 1988 | |
| 1989 | 1989 | /** @type {ToastrOptions} */ |
| 1990 | 1990 | const options = {}; |
| 1991 | 1991 | if (args.timeOuttimeout && !isNaN(parseInt(args.timeOuttimeout))) options.timeOut = parseInt(args.timeOuttimeout); |
| 1992 | 1992 | if (args.extendedTimeOutextendedTimeout && !isNaN(parseInt(args.extendedTimeOutextendedTimeout))) options.extendedTimeOut = parseInt(args.extendedTimeOutextendedTimeout); |
| 1993 | 1993 | if (isTrueBoolean(args.preventDuplicates)) options.preventDuplicates = true; |
| 1994 | 1994 | |
| 1995 | 1995 | // Prepare possible await handling |