Class RestBan
Represents a REST-based ban object.
Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestBan : IBan
Properties​
User​
Gets the banned user.
View Source​
Declaration
public RestUser User { get; }
Reason​
Gets the reason why the user is banned if specified.
View Source​
Declaration
public string Reason { get; }
IBan.User​
Gets the banned user.
View Source​
Declaration
IUser IBan.User { get; }
Methods​
ToString()​
Gets the name of the banned user.
View Source​
Declaration
public override string ToString()
Returns​
System.String
:
A string containing the name of the user that was banned.