Table of Contents

Class SocketBanAuditLogData

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

Contains a piece of audit log data related to a ban.

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

Properties

Target

Gets the user that was banned.

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

Property Value

Cacheable<SocketUser, RestUser, IUser, ulong>

A cacheable user object representing the banned user.

Remarks

Download method may return null if the user is a 'Deleted User#....' because Discord does send user data for deleted users.