Exemple #1
0
 public static OverwriteModel ToModel(this LocalOverwrite overwrite)
 => new OverwriteModel
 {
     Id    = overwrite.TargetId,
     Type  = overwrite.TargetType,
     Allow = overwrite.Permissions.Allowed,
     Deny  = overwrite.Permissions.Denied
 };
 public Task AddOrModifyOverwriteAsync(Snowflake channelId, LocalOverwrite overwrite, RestRequestOptions options     = null) => ((IRestDiscordClient)this.RestClient).AddOrModifyOverwriteAsync(channelId, overwrite, options);
 public Task AddOrModifyOverwriteAsync(LocalOverwrite overwrite, RestRequestOptions options = null)
 => Client.AddOrModifyOverwriteAsync(Id, overwrite, options);