Table of Contents

Class WelcomeScreenChannelProperties

Namespace
Discord
Assembly
Discord.Net.Core.dll
public class WelcomeScreenChannelProperties : ISnowflakeEntity, IEntity<ulong>
Inheritance
WelcomeScreenChannelProperties
Implements
Inherited Members

Constructors

WelcomeScreenChannelProperties()

Initializes a new instance of WelcomeScreenChannelProperties.

public WelcomeScreenChannelProperties()

WelcomeScreenChannelProperties(ulong, string, IEmote)

Initializes a new instance of WelcomeScreenChannelProperties.

public WelcomeScreenChannelProperties(ulong id, string description, IEmote emoji = null)

Parameters

id ulong

Id if a channel.

description string

Description for the channel in the welcome screen.

emoji IEmote

The emoji for the channel in the welcome screen.

Properties

CreatedAt

Gets when the snowflake was created.

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

A DateTimeOffset representing when the entity was first created.

Description

Gets or sets the description shown for the channel.

public string Description { get; set; }

Property Value

string

Emoji

Gets or sets the emoji for this channel. Emoji if it is unicode emoji, Emote if it is a custom one and null if none is set.

public IEmote Emoji { get; set; }

Property Value

IEmote

Remarks

If the emoji is Emote only the Id will be populated. Use GetEmoteAsync(ulong, RequestOptions) to get the emoji.

Id

Gets or sets the channel's id.

public ulong Id { get; set; }

Property Value

ulong

Methods

FromWelcomeScreenChannel(WelcomeScreenChannel)

Initializes a new instance of WelcomeScreenChannelProperties.

public static WelcomeScreenChannelProperties FromWelcomeScreenChannel(WelcomeScreenChannel channel)

Parameters

channel WelcomeScreenChannel

A welcome screen channel to modify.

Returns

WelcomeScreenChannelProperties

A new instance of WelcomeScreenChannelProperties.