v0.13.7
errors and warnings / stdlib

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

× failswowlua
import slash from "wowlua:slash" @slash("mytool")local function open(msg: string) print(msg) end
✓ compileswowlua
import slash from "wowlua:slash" @slash("/mytool")local function open(msg: string) print(msg) end

The 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
codemessage
E8010Duplicate slash command
W8011Slash command collides with a Blizzard command

Offline

terminal
$ wowlua explain E8101
E8101 (error): Invalid slash command name (must start with /, no whitespace)

source on GitHub ↗