@@ -7,7 +7,7 @@ namespace Discord
{
public partial class DiscordClient
{
public Task SetChannelUser Permissions(Channel channel, User user, ChannelPermissions allow = null, ChannelPermissions deny = null)
public Task SetChannelPermissions(Channel channel, User user, ChannelPermissions allow = null, ChannelPermissions deny = null)
{
if (channel == null) throw new ArgumentNullException(nameof(channel));
if (user == null) throw new ArgumentNullException(nameof(user));
@@ -15,7 +15,7 @@ namespace Discord
return SetChannelPermissions(channel, user?.Id, PermissionTarget.User, allow, deny);
}
public Task SetChannelUser Permissions(Channel channel, User user, DualChannelPermissions permissions = null)
public Task SetChannelPermissions(Channel channel, User user, DualChannelPermissions permissions = null)
{
if (channel == null) throw new ArgumentNullException(nameof(channel));
if (user == null) throw new ArgumentNullException(nameof(user));
@@ -23,7 +23,7 @@ namespace Discord
return SetChannelPermissions(channel, user?.Id, PermissionTarget.User, permissions?.Allow, permissions?.Deny);
}
public Task SetChannelRole Permissions(Channel channel, Role role, ChannelPermissions allow = null, ChannelPermissions deny = null)
public Task SetChannelPermissions(Channel channel, Role role, ChannelPermissions allow = null, ChannelPermissions deny = null)
{
if (channel == null) throw new ArgumentNullException(nameof(channel));
if (role == null) throw new ArgumentNullException(nameof(role));
@@ -31,7 +31,7 @@ namespace Discord
return SetChannelPermissions(channel, role?.Id, PermissionTarget.Role, allow, deny);
}
public Task SetChannelRole Permissions(Channel channel, Role role, DualChannelPermissions permissions = null)
public Task SetChannelPermissions(Channel channel, Role role, DualChannelPermissions permissions = null)
{
if (channel == null) throw new ArgumentNullException(nameof(channel));
if (role == null) throw new ArgumentNullException(nameof(role));
@@ -42,7 +42,7 @@ namespace Discord
private Task SetChannelPermissions(Channel channel, string targetId, PermissionTarget targetType, ChannelPermissions allow = null, ChannelPermissions deny = null)
=> _api.SetChannelPermissions(channel.Id, targetId, targetType.Value, allow?.RawValue ?? 0, deny?.RawValue ?? 0);
public Task RemoveChannelUser Permissions(Channel channel, User user)
public Task RemoveChannelPermissions(Channel channel, User user)
{
if (channel == null) throw new ArgumentNullException(nameof(channel));
if (user == null) throw new ArgumentNullException(nameof(user));
@@ -50,7 +50,7 @@ namespace Discord
return RemoveChannelPermissions(channel, user?.Id, PermissionTarget.User);
}
public Task RemoveChannelRole Permissions(Channel channel, Role role)
public Task RemoveChannelPermissions(Channel channel, Role role)
{
if (channel == null) throw new ArgumentNullException(nameof(channel));
if (role == null) throw new ArgumentNullException(nameof(role));