The Dispenser is a block that can store up to nine stacks of items and is capable of dispensing them or shooting them out as projectiles when activated by a redstone signal. It can shoot arrows, splash potions, use buckets to collect or dispense water and lava, or equip armor to players or mobs in front of it. It is crafted using seven cobblestones, one redstone dust, and one bow.
The numerical item ID for Dispenser is 23
Numerical item IDs will only work in Minecraft versions below 1.13.
The item ID for Dispenser is minecraft:dispenser
This is the spawn command to give yourself Dispenser in Minecraft which includes the Minecraft /give command. If you are using the Essentials plugin you will need to use /minecraft:give instead of /give