Table of Contents

Class Message

Namespace
NetCord.Gateway
Assembly
NetCord.dll

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 JsonMessage
guild Guild
channel TextChannel
client RestClient

Properties

Channel

public TextChannel? Channel { get; }

Property Value

TextChannel

Guild

public Guild? Guild { get; }

Property Value

Guild

GuildId

public ulong? GuildId { get; }

Property Value

ulong?

Methods

CreateFromJson(JsonMessage, IGatewayClientCache, RestClient)

public static Message CreateFromJson(JsonMessage jsonModel, IGatewayClientCache cache, RestClient client)

Parameters

jsonModel JsonMessage
cache IGatewayClientCache
client RestClient

Returns

Message