Method AddComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
AddComponent(DiscordComponent)
Adds a component to the container.
public DiscordContainerComponent AddComponent(DiscordComponent component)
Parameters
component
DiscordComponentThe component to add.
Returns
- DiscordContainerComponent
The updated container component.
Exceptions
- ArgumentException
Thrown if the number of components exceeds 10 or if any of the components are not of the allowed types.