Skip to main content

Enum ButtonStyle

Represents different styles to use with buttons. You can see an example of the different styles at https://discord.com/developers/docs/interactions/message-components#buttons-button-styles

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public enum ButtonStyle

Fields​

Primary​

A Blurple button

View Source​
Declaration
Primary = 1

Secondary​

A Grey (or gray) button

View Source​
Declaration
Secondary = 2

Success​

A Green button

View Source​
Declaration
Success = 3

Danger​

A Red button

View Source​
Declaration
Danger = 4

A Discord.ButtonStyle.Secondary button with a little popup box indicating that this button is a link.

View Source​
Declaration
Link = 5