Class Page
- Namespace
- DisCatSharp.Interactivity.Entities
- Assembly
- DisCatSharp.Interactivity.dll
The page.
public class Page
- Inheritance
-
Page
- Inherited Members
Constructors
- Page(string?, DiscordEmbedBuilder?)
Initializes a new instance of the Page class.
You need to specify at least
contentorembedor both.
Properties
- Content
Gets or sets the content.
- Embed
Gets or sets the embed.
Methods
- AddComponents(params DiscordComponent[])
Adds v2 components to the message. This enables the use of up to
40components per message.warning
This does not support old component behavior. Only V2.
- AddComponents(IEnumerable<DiscordComponent>)
Adds v2 components to the message. This enables the use of up to
40components per message.warning
This does not support old component behavior. Only V2.
- AddFile(string, Stream, bool, string)
Adds a file to the page.
- WithContent(string)
Sets the content of the page.
warning
This cannot be used together with AddComponents(params DiscordComponent[]) / AddComponents(IEnumerable<DiscordComponent>).
- WithEmbed(DiscordEmbedBuilder)
Sets the embed of the page.
warning
This cannot be used together with AddComponents(params DiscordComponent[]) / AddComponents(IEnumerable<DiscordComponent>).