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
ulongId if a channel.
description
stringDescription for the channel in the welcome screen.
emoji
IEmoteThe 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
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
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
Methods
FromWelcomeScreenChannel(WelcomeScreenChannel)
Initializes a new instance of WelcomeScreenChannelProperties.
public static WelcomeScreenChannelProperties FromWelcomeScreenChannel(WelcomeScreenChannel channel)
Parameters
channel
WelcomeScreenChannelA welcome screen channel to modify.
Returns
- WelcomeScreenChannelProperties
A new instance of WelcomeScreenChannelProperties.