Class GuildBan
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class GuildBan : IJsonModel<JsonGuildBan>
- Inheritance
-
GuildBan
- Implements
-
- Inherited Members
-
Constructors
GuildBan(JsonGuildBan, ulong, RestClient)
public GuildBan(JsonGuildBan jsonModel, ulong guildId, RestClient client)
Parameters
jsonModel JsonGuildBan
guildId ulong
client RestClient
Properties
GuildId
public ulong GuildId { get; }
Property Value
- ulong
Reason
public string? Reason { get; }
Property Value
- string
User
public User User { get; }
Property Value
- User
Methods
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties RestRequestProperties
cancellationToken CancellationToken
Returns
- Task