API reference
Method SetState
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
SetState(bool)
Sets whether this menu item is disabled.
public DiscordMenuActionItemComponent SetState(bool disabled)
Parameters
disabledboolWhether the item should be unavailable for selection.
Returns
- DiscordMenuActionItemComponent
This menu item.