Update defs and enums for other math commands - Now even the commands like `/div count charnumber` work well with auto complete
| @@ -1749,17 +1749,18 @@ export function registerVariableCommands() { | ||
| 1749 | 1749 | description: 'dividend', |
| 1750 | 1750 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1751 | 1751 | isRequired: true, |
| 1752 | 1752 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1753 | 1753 | forceEnum: false, |
| 1754 | 1754 | }), |
| 1755 | 1755 | SlashCommandArgument.fromProps({ |
| 1756 | 1756 | description: 'divisor', |
| 1757 | 1757 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1758 | 1758 | isRequired: true, |
| 1759 | 1759 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1760 | 1760 | forceEnum: false, |
| 1761 | 1761 | }), |
| 1762 | 1762 | ], |
| 1763 | + splitUnnamedArgument: true, | |
| 1763 | 1764 | helpString: ` |
| 1764 | 1765 | <div> |
| 1765 | 1766 | Performs a division of two values and passes the result down the pipe. |
| @@ -1784,17 +1785,18 @@ export function registerVariableCommands() { | ||
| 1784 | 1785 | description: 'dividend', |
| 1785 | 1786 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1786 | 1787 | isRequired: true, |
| 1787 | 1788 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1788 | 1789 | forceEnum: false, |
| 1789 | 1790 | }), |
| 1790 | 1791 | SlashCommandArgument.fromProps({ |
| 1791 | 1792 | description: 'divisor', |
| 1792 | 1793 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1793 | 1794 | isRequired: true, |
| 1794 | 1795 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1795 | 1796 | forceEnum: false, |
| 1796 | 1797 | }), |
| 1797 | 1798 | ], |
| 1799 | + splitUnnamedArgument: true, | |
| 1798 | 1800 | helpString: ` |
| 1799 | 1801 | <div> |
| 1800 | 1802 | Performs a modulo operation of two values and passes the result down the pipe. |
| @@ -1819,17 +1821,18 @@ export function registerVariableCommands() { | ||
| 1819 | 1821 | description: 'base', |
| 1820 | 1822 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1821 | 1823 | isRequired: true, |
| 1822 | 1824 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1823 | 1825 | forceEnum: false, |
| 1824 | 1826 | }), |
| 1825 | 1827 | SlashCommandArgument.fromProps({ |
| 1826 | 1828 | description: 'exponent', |
| 1827 | 1829 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1828 | 1830 | isRequired: true, |
| 1829 | 1831 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1830 | 1832 | forceEnum: false, |
| 1831 | 1833 | }), |
| 1832 | 1834 | ], |
| 1835 | + splitUnnamedArgument: true, | |
| 1833 | 1836 | helpString: ` |
| 1834 | 1837 | <div> |
| 1835 | 1838 | Performs a power operation of two values and passes the result down the pipe. |
| @@ -1854,7 +1857,7 @@ export function registerVariableCommands() { | ||
| 1854 | 1857 | description: 'value', |
| 1855 | 1858 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1856 | 1859 | isRequired: true, |
| 1857 | 1860 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1858 | 1861 | forceEnum: false, |
| 1859 | 1862 | }), |
| 1860 | 1863 | ], |
| @@ -1882,7 +1885,7 @@ export function registerVariableCommands() { | ||
| 1882 | 1885 | description: 'value', |
| 1883 | 1886 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1884 | 1887 | isRequired: true, |
| 1885 | 1888 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1886 | 1889 | forceEnum: false, |
| 1887 | 1890 | }), |
| 1888 | 1891 | ], |
| @@ -1911,7 +1914,7 @@ export function registerVariableCommands() { | ||
| 1911 | 1914 | description: 'value', |
| 1912 | 1915 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1913 | 1916 | isRequired: true, |
| 1914 | 1917 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1915 | 1918 | forceEnum: false, |
| 1916 | 1919 | }), |
| 1917 | 1920 | ], |
| @@ -1939,7 +1942,7 @@ export function registerVariableCommands() { | ||
| 1939 | 1942 | description: 'value', |
| 1940 | 1943 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1941 | 1944 | isRequired: true, |
| 1942 | 1945 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1943 | 1946 | forceEnum: false, |
| 1944 | 1947 | }), |
| 1945 | 1948 | ], |
| @@ -1967,7 +1970,7 @@ export function registerVariableCommands() { | ||
| 1967 | 1970 | description: 'value', |
| 1968 | 1971 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1969 | 1972 | isRequired: true, |
| 1970 | 1973 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1971 | 1974 | forceEnum: false, |
| 1972 | 1975 | }), |
| 1973 | 1976 | ], |
| @@ -1995,7 +1998,7 @@ export function registerVariableCommands() { | ||
| 1995 | 1998 | description: 'value', |
| 1996 | 1999 | typeList: [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.VARIABLE_NAME], |
| 1997 | 2000 | isRequired: true, |
| 1998 | 2001 | enumProvider: commonEnumProviders.variables('all')numbersAndVariables, |
| 1999 | 2002 | forceEnum: false, |
| 2000 | 2003 | }), |
| 2001 | 2004 | ], |