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