Table of Contents
API reference

Class Page

Namespace
DisCatSharp.Interactivity.Entities
Assembly
DisCatSharp.Interactivity.dll

The page.

public class Page
Inheritance
Page
Inherited Members

Constructors

Page()
Page(string?, DiscordEmbedBuilder?)

Initializes a new instance of the Page class.

You need to specify at least content or embed or 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 40 components 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 40 components 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.

WithEmbed(DiscordEmbedBuilder)

Sets the embed of the page.