Table of Contents

Interface IBan

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a generic ban object.

public interface IBan

Properties

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.