Table of Contents

Class SocketMessagePinAuditLogData

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll

Contains a piece of audit log data related to a pinned message.

public class SocketMessagePinAuditLogData : ISocketAuditLogData, IAuditLogData
Inheritance
SocketMessagePinAuditLogData
Implements
Inherited Members

Properties

ChannelId

Gets the ID of the channel that the message was pinned from.

public ulong ChannelId { get; }

Property Value

ulong

A ulong representing the snowflake identifier for the channel that the message was pinned from.

MessageId

Gets the ID of the messages that was pinned.

public ulong MessageId { get; }

Property Value

ulong

A ulong representing the snowflake identifier for the messages that was pinned.

Target

Gets the user of the message that was pinned if available.

public Cacheable<SocketUser, RestUser, IUser, ulong>? Target { get; }

Property Value

Cacheable<SocketUser, RestUser, IUser, ulong>?

A user object representing the user that created the pinned message or null.

Remarks

Will be null if the user is a 'Deleted User#....' because Discord does send user data for deleted users.