Interface IBan
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Represents a generic ban object.
public interface IBan
Properties
CreatedAt
Gets the time when the ban was issued.
DateTimeOffset CreatedAt { get; }
Property Value
- DateTimeOffset
A DateTime object that represents the time when the ban was issued.
Reason
Gets the reason why the user is banned if specified.
string Reason { get; }
Property Value
- string
A string containing the reason behind the ban;
null
if none is specified.
User
Gets the banned user.
IUser User { get; }
Property Value
- IUser
A user that was banned.