diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketGuildChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketGuildChannel.cs
index 075b2866c..e48c6dd5f 100644
--- a/src/Discord.Net.WebSocket/Entities/Channels/SocketGuildChannel.cs
+++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketGuildChannel.cs
@@ -78,6 +78,15 @@ namespace Discord.WebSocket
public Task DeleteAsync(RequestOptions options = null)
=> ChannelHelper.DeleteAsync(this, Discord, options);
+ ///
+ /// Gets the overwrite permissions of the specified
+ ///
+ ///
+ /// The user that you want to get the overwrite permissions for
+ ///
+ ///
+ /// Null if the user has no overwrite permissions otherwise the overwrite permissions for the user
+ ///
public OverwritePermissions? GetPermissionOverwrite(IUser user)
{
for (int i = 0; i < _overwrites.Length; i++)
@@ -87,6 +96,16 @@ namespace Discord.WebSocket
}
return null;
}
+
+ ///
+ /// Gets the overwrite permissions of the specified
+ ///
+ ///
+ /// The role that you want to get the overwrite permissions for
+ ///
+ ///
+ /// Null if the role has no overwrite permissions otherwise the overwrite permissions for the role
+ ///
public OverwritePermissions? GetPermissionOverwrite(IRole role)
{
for (int i = 0; i < _overwrites.Length; i++)
@@ -96,11 +115,37 @@ namespace Discord.WebSocket
}
return null;
}
+
+ ///
+ /// Adds an overwrite permission for the specified
+ ///
+ ///
+ /// The user you want the overwrite permission to apply to
+ ///
+ ///
+ /// The overwrite permission you want to add
+ ///
+ ///
+ /// The options to be used when sending the request
+ ///
public async Task AddPermissionOverwriteAsync(IUser user, OverwritePermissions perms, RequestOptions options = null)
{
await ChannelHelper.AddPermissionOverwriteAsync(this, Discord, user, perms, options).ConfigureAwait(false);
_overwrites = _overwrites.Add(new Overwrite(user.Id, PermissionTarget.User, new OverwritePermissions(perms.AllowValue, perms.DenyValue)));
}
+
+ ///
+ /// Adds an overwrite permission for the specified
+ ///
+ ///
+ /// The role you want the overwrite permission to apply to
+ ///
+ ///
+ /// The overwrite permission you want to add
+ ///
+ ///
+ /// The options to be used when sending the request
+ ///
public async Task AddPermissionOverwriteAsync(IRole role, OverwritePermissions perms, RequestOptions options = null)
{
await ChannelHelper.AddPermissionOverwriteAsync(this, Discord, role, perms, options).ConfigureAwait(false);