getSlot

fun CommandContext<CommandSourceStack>.getSlot(name: String): Int

Retrieves a slot index (Int) from the command context.