Table of Contents

Class MessagePin

Namespace
NetCord.Rest
Assembly
NetCord.dll

Represents a message pin in a channel, containing the pinned message and the time it was pinned.

public class MessagePin : IJsonModel<JsonMessagePin>
Inheritance
MessagePin
Implements
Inherited Members

Constructors

MessagePin(JsonMessagePin, RestClient)

Represents a message pin in a channel, containing the pinned message and the time it was pinned.

public MessagePin(JsonMessagePin jsonModel, RestClient client)

Parameters

jsonModel JsonMessagePin
client RestClient

Properties

Message

The pinned message.

public RestMessage Message { get; }

Property Value

RestMessage

PinnedAt

The time the message was pinned.

public DateTimeOffset PinnedAt { get; }

Property Value

DateTimeOffset