public ComponentType Type { get; } = ComponentType.Button;
/// <summary>
/// The <see cref="ButtonStyle"/> of this button, example buttons with each style can be found <see href="https://discord.com/assets/7bb017ce52cfd6575e21c058feb3883b.png">Here</see>.
/// Gets the <see cref="ButtonStyle"/> of this button, example buttons with each style can be found <see href="https://discord.com/assets/7bb017ce52cfd6575e21c058feb3883b.png">Here</see>.
/// </summary>
public ButtonStyle Style { get; }
/// <summary>
/// The label of the button, this is the text that is shown.
/// Gets the label of the button, this is the text that is shown.
/// </summary>
public string Label { get; }
/// <summary>
/// A <see cref="IEmote"/> that will be displayed with this button.
/// Gets the <see cref="IEmote"/> displayed with this button.
/// </summary>
public IEmote Emote { get; }
/// <summary>
/// A unique id that will be sent with a <see cref="IDiscordInteraction"/>. This is how you know what button was pressed.
/// </summary>
/// <inheritdoc/>
public string CustomId { get; }
/// <summary>
/// A URL for a <see cref="ButtonStyle.Link"/> button.
/// Gets the URL for a <see cref="ButtonStyle.Link"/> button.
/// </summary>
/// <remarks>
/// You cannot have a button with a <b>URL</b> and a <b>CustomId</b>.
@@ -44,9 +42,9 @@ namespace Discord
public string Url { get; }
/// <summary>
/// Whether this button is disabled or not.
/// Gets whether this button is disabled or not.
/// </summary>
public bool Disabled { get; }
public bool IsDisabled { get; }
/// <summary>
/// Turns this button into a button builder.
@@ -55,16 +53,16 @@ namespace Discord
/// A newly created button builder with the same properties as this button.
/// </returns>
public ButtonBuilder ToBuilder()
=> new ButtonBuilder(Label, CustomId, Style, Url, Emote, Disabled);
=> new ButtonBuilder(Label, CustomId, Style, Url, Emote, IsDisabled);
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.