|
@@ -82,14 +82,20 @@ namespace Discord.Rest |
|
|
else if (args.RoleIds.IsSpecified) |
|
|
else if (args.RoleIds.IsSpecified) |
|
|
UpdateRoles(args.RoleIds.Value.ToArray()); |
|
|
UpdateRoles(args.RoleIds.Value.ToArray()); |
|
|
} |
|
|
} |
|
|
|
|
|
public Task KickAsync(RequestOptions options = null) |
|
|
|
|
|
=> UserHelper.KickAsync(this, Discord, options); |
|
|
|
|
|
/// <inheritdoc /> |
|
|
|
|
|
public Task AddRoleAsync(IRole role, RequestOptions options = null) |
|
|
|
|
|
=> AddRolesAsync(new[] { role }, options); |
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
public Task AddRolesAsync(IEnumerable<IRole> roles, RequestOptions options = null) |
|
|
public Task AddRolesAsync(IEnumerable<IRole> roles, RequestOptions options = null) |
|
|
=> UserHelper.AddRolesAsync(this, Discord, roles, options); |
|
|
=> UserHelper.AddRolesAsync(this, Discord, roles, options); |
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
|
|
|
public Task RemoveRoleAsync(IRole role, RequestOptions options = null) |
|
|
|
|
|
=> RemoveRolesAsync(new[] { role }, options); |
|
|
|
|
|
/// <inheritdoc /> |
|
|
public Task RemoveRolesAsync(IEnumerable<IRole> roles, RequestOptions options = null) |
|
|
public Task RemoveRolesAsync(IEnumerable<IRole> roles, RequestOptions options = null) |
|
|
=> UserHelper.RemoveRolesAsync(this, Discord, roles, options); |
|
|
=> UserHelper.RemoveRolesAsync(this, Discord, roles, options); |
|
|
public Task KickAsync(RequestOptions options = null) |
|
|
|
|
|
=> UserHelper.KickAsync(this, Discord, options); |
|
|
|
|
|
|
|
|
|
|
|
public ChannelPermissions GetPermissions(IGuildChannel channel) |
|
|
public ChannelPermissions GetPermissions(IGuildChannel channel) |
|
|
{ |
|
|
{ |
|
|