@@ -20,10 +20,14 @@ namespace Discord | |||||
/// </summary> | /// </summary> | ||||
public IReadOnlyCollection<IMessageComponent> Components { get; internal set; } | public IReadOnlyCollection<IMessageComponent> Components { get; internal set; } | ||||
internal ActionRowComponent() { } | internal ActionRowComponent() { } | ||||
internal ActionRowComponent(List<IMessageComponent> components) | internal ActionRowComponent(List<IMessageComponent> components) | ||||
{ | { | ||||
this.Components = components; | this.Components = components; | ||||
} | } | ||||
string IMessageComponent.CustomId => null; | |||||
} | } | ||||
} | } |
@@ -57,7 +57,5 @@ namespace Discord | |||||
this.Url = url; | this.Url = url; | ||||
this.Disabled = disabled; | this.Disabled = disabled; | ||||
} | } | ||||
} | } | ||||
} | } |
@@ -6,11 +6,19 @@ using System.Threading.Tasks; | |||||
namespace Discord | namespace Discord | ||||
{ | { | ||||
/// <summary> | |||||
/// Represents a message component on a message. | |||||
/// </summary> | |||||
public interface IMessageComponent | public interface IMessageComponent | ||||
{ | { | ||||
/// <summary> | /// <summary> | ||||
/// The <see cref="ComponentType"/> of this Message Component. | |||||
/// Gets the <see cref="ComponentType"/> of this Message Component. | |||||
/// </summary> | /// </summary> | ||||
public ComponentType Type { get; } | |||||
ComponentType Type { get; } | |||||
/// <summary> | |||||
/// Gets the custom id of the component if possible; otherwise <see langword="null"/>. | |||||
/// </summary> | |||||
string CustomId { get; } | |||||
} | } | ||||
} | } |