Skip to content

Commit

Permalink
Merge pull request #16 from rob893/master
Browse files Browse the repository at this point in the history
feat: add SlashCmdList constant
  • Loading branch information
wartoshika authored Jun 16, 2021
2 parents c2e27a6 + 97ba39a commit 1af5266
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions declarations/constants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,10 @@ declare namespace WoWAPI {
type InventoryId = INVSLOT_AMMO | INVSLOT_HEAD | INVSLOT_NECK | INVSLOT_SHOULDER | INVSLOT_BODY | INVSLOT_CHEST |
INVSLOT_WAIST | INVSLOT_LEGS | INVSLOT_FEET | INVSLOT_WRIST | INVSLOT_HAND | INVSLOT_FINGER1 | INVSLOT_FINGER2 | INVSLOT_TRINKET1 |
INVSLOT_TRINKET2 | INVSLOT_BACK | INVSLOT_MAINHAND | INVSLOT_OFFHAND | INVSLOT_RANGED | INVSLOT_TABARD;

/**
* Global object used to register and assign handler functions to for slash commands.
* @see https://wowpedia.fandom.com/wiki/Creating_a_slash_command
*/
const SlashCmdList: { [key: string]: (this: void, msg: string, editBox: EditBox) => void };
}

0 comments on commit 1af5266

Please sign in to comment.