Table of Contents
API reference

Class DiscordMenuActionItemComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents an action within a DiscordOverflowMenuComponent.

public sealed class DiscordMenuActionItemComponent : DiscordComponent
Inheritance
DiscordMenuActionItemComponent
Inherited Members

Constructors

DiscordMenuActionItemComponent(MenuActionItemStyle, string, string?, string?, string?, DiscordComponentEmoji?, bool)

Constructs an overflow menu action item.

Properties

CustomId

Gets the interaction identifier for interactive styles.

Description

Gets optional supporting text displayed below the label.

Disabled

Gets whether this item is disabled.

Emoji

Gets the optional item emoji.

Label

Gets the label displayed for this item.

Style

Gets the action style.

Url

Gets the destination opened by a link item.

Methods

Disable()

Disables this menu item.

Enable()

Enables this menu item.

SetState(bool)

Sets whether this menu item is disabled.

WithId(int)

Assigns a component identifier.