Class PartialGuildUserExtensions
- Namespace
- NetCord
- Assembly
- NetCord.dll
Contains methods providing additional functionality for PartialGuildUser.
public static class PartialGuildUserExtensions
- Inheritance
-
PartialGuildUserExtensions
- Inherited Members
Methods
GetChannelPermissions(PartialGuildUser, Guild, ulong)
Returns a IGuildChannel-specific Permissions object belonging to the PartialGuildUser by acquiring it from the specificied RestGuild.
public static Permissions GetChannelPermissions(this PartialGuildUser user, Guild guild, ulong channelId)
Parameters
userPartialGuildUserThe PartialGuildUser to acquire permissions for.
guildGuildThe RestGuild to acquire the permissions from.
channelIdulongThe ID of the IGuildChannel to acquire the permissions for.
Returns
GetChannelPermissions(PartialGuildUser, Permissions, IGuildChannel)
Returns a IGuildChannel-specific Permissions object belonging to the PartialGuildUser by acquiring it from the specificied guildPermissions.
public static Permissions GetChannelPermissions(this PartialGuildUser user, Permissions guildPermissions, IGuildChannel channel)
Parameters
userPartialGuildUserThe PartialGuildUser to acquire permissions for.
guildPermissionsPermissionsThe Permissions object to acquire permissions from.
channelIGuildChannelThe IGuildChannel to acquire the permissions for.
Returns
GetChannelPermissions(PartialGuildUser, RestGuild, IGuildChannel)
Returns a IGuildChannel-specific Permissions object belonging to the PartialGuildUser by acquiring it from the specificied RestGuild.
public static Permissions GetChannelPermissions(this PartialGuildUser user, RestGuild guild, IGuildChannel channel)
Parameters
userPartialGuildUserThe PartialGuildUser to acquire permissions for.
guildRestGuildThe RestGuild to acquire the permissions from.
channelIGuildChannelThe IGuildChannel to acquire the permissions for.
Returns
GetPermissions(PartialGuildUser, RestGuild)
Returns a Permissions object belonging to the PartialGuildUser by acquiring it from the specificied RestGuild.
public static Permissions GetPermissions(this PartialGuildUser user, RestGuild guild)
Parameters
userPartialGuildUserThe PartialGuildUser to acquire permissions for.
guildRestGuildThe RestGuild to acquire the permissions from.
Returns
GetRoles(PartialGuildUser, RestGuild)
Returns an IEnumerable<T> object belonging to the PartialGuildUser by acquiring it from the specificied RestGuild.
public static IEnumerable<Role> GetRoles(this PartialGuildUser user, RestGuild guild)
Parameters
userPartialGuildUserThe PartialGuildUser to acquire roles for.
guildRestGuildThe RestGuild to acquire the roles from.