Class Message
Represents a complete Message object, with all required fields present.
public class Message : RestMessage, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonMessage>
- Inheritance
-
Message
- Implements
- Inherited Members
Constructors
Message(JsonMessage, Guild?, TextChannel?, RestClient)
Represents a complete Message object, with all required fields present.
public Message(JsonMessage jsonModel, Guild? guild, TextChannel? channel, RestClient client)
Parameters
jsonModel
JsonMessageguild
Guildchannel
TextChannelclient
RestClient
Properties
Channel
public TextChannel? Channel { get; }
Property Value
Guild
public Guild? Guild { get; }
Property Value
GuildId
public ulong? GuildId { get; }
Property Value
Methods
CreateFromJson(JsonMessage, IGatewayClientCache, RestClient)
public static Message CreateFromJson(JsonMessage jsonModel, IGatewayClientCache cache, RestClient client)
Parameters
jsonModel
JsonMessagecache
IGatewayClientCacheclient
RestClient