errors and warnings / stdlib / E8310
E8310 error
Invalid token in a literal aura filter
- area
- stdlib (x8xxx)
- fails the build
- yes
A literal aura filter passed to wowlua:aura (each, forEach, find,
findByName, or a container group's filter) has a word that isn't an aura
filter, an empty word, or a word or ! negation one of your flavors doesn't
have. The words are |-separated and come from each client's
AuraUtil.AuraFilters (HELPFUL, HARMFUL, PLAYER, RAID, CANCELABLE,
…). Fix the spelling, or drop the word.
Example
import * as aura from "wowlua:aura" for a in aura.each("player", "HELPFUL|MINE") do print(a.name)endimport * as aura from "wowlua:aura" for a in aura.each("player", "HELPFUL|PLAYER") do print(a.name)endThe compiler reports it like this:
error[E8310]: `MINE` is not an aura filter word ┌─ src/main.wowlua:3:30 │ 3 │ for a in aura.each("player", "HELPFUL|MINE") do │ ^^^^^^^^^^^^^^ in this aura filter
Related codes
| code | message |
|---|---|
| E8300 | Standard-library function unavailable on a targeted flavor (no fallback) |
Offline
$ wowlua explain E8310 E8310 (error): Invalid token in a literal aura filter