Constructor DiscordSeparatorComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DiscordSeparatorComponent(DiscordSeparatorComponent)
Constructs a new separator component based on another separator component.
public DiscordSeparatorComponent(DiscordSeparatorComponent other)
Parameters
other
DiscordSeparatorComponentThe button to copy.
DiscordSeparatorComponent(bool?, SeparatorSpacingSize?)
Constructs a new separator component field with the specified options.
public DiscordSeparatorComponent(bool? divider = null, SeparatorSpacingSize? spacing = null)
Parameters
divider
bool?Whether this is a divider.
spacing
SeparatorSpacingSize?The spacing size.
Exceptions
- ArgumentException
Is thrown when no label is set.