errors and warnings / stdlib / E8101
E8101 error
Invalid slash command name (must start with /, no whitespace)
- area
- stdlib (x8xxx)
- fails the build
- yes
A slash command name must start with /, have at least one character after it
and contain no spaces or other whitespace ("/mytool"). The game can't register
anything else as a command.
Add the leading /, or remove the spaces.
Example
import slash from "wowlua:slash" @slash("mytool")local function open(msg: string) print(msg) endimport slash from "wowlua:slash" @slash("/mytool")local function open(msg: string) print(msg) endThe compiler reports it like this:
error[E8101]: `mytool` is no slash command: it starts with `/` and has no spaces ┌─ src/main.wowlua:3:8 │ 3 │ @slash("mytool") │ ^^^^^^^^ invalid
Related codes
Offline
$ wowlua explain E8101 E8101 (error): Invalid slash command name (must start with /, no whitespace)