Method AddComponents
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
AddComponents(params DiscordComponent[])
Appends a collection of components to the message.
public DiscordFollowupMessageBuilder AddComponents(params DiscordComponent[] components)
Parameters
components
DiscordComponent[]The collection of components to add.
Returns
- DiscordFollowupMessageBuilder
The builder to chain calls with.
Exceptions
- ArgumentException
components
contained more than 5 components.
AddComponents(IEnumerable<DiscordActionRowComponent>)
Appends several rows of components to the message
public DiscordFollowupMessageBuilder AddComponents(IEnumerable<DiscordActionRowComponent> components)
Parameters
components
IEnumerable<DiscordActionRowComponent>The rows of components to add, holding up to five each.
Returns
AddComponents(IEnumerable<DiscordComponent>)
Appends a collection of components to the message.
public DiscordFollowupMessageBuilder AddComponents(IEnumerable<DiscordComponent> components)
Parameters
components
IEnumerable<DiscordComponent>The collection of components to add.
Returns
- DiscordFollowupMessageBuilder
The builder to chain calls with.
Exceptions
- ArgumentException
components
contained more than 5 components.