Table of Contents

Class RestBan

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

Represents a REST-based ban object.

public class RestBan : IBan
Inheritance
RestBan
Implements
Inherited Members

Properties

Reason

Gets the reason why the user is banned if specified.

public string Reason { get; }

Property Value

string

A string containing the reason behind the ban; null if none is specified.

User

Gets the banned user.

public RestUser User { get; }

Property Value

RestUser

A generic RestUser object that was banned.

Methods

ToString()

Gets the name of the banned user.

public override string ToString()

Returns

string

A string containing the name of the user that was banned.