Table of Contents

Class DiscordBaseButtonComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a button component.

public class DiscordBaseButtonComponent : DiscordSectionAccessory
Inheritance
DiscordBaseButtonComponent
Derived
Inherited Members

Properties

Disabled

Whether this button can be pressed.

Methods

Disable()

Disables this component.

Enable()

Enables this component if it was disabled before.

SetState(bool)

Enables or disables this component.

WithId(int)

Assigns a unique id to this component.