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
user
PartialGuildUserThe PartialGuildUser to acquire permissions for.
guild
GuildThe RestGuild to acquire the permissions from.
channelId
ulongThe 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
user
PartialGuildUserThe PartialGuildUser to acquire permissions for.
guildPermissions
PermissionsThe Permissions object to acquire permissions from.
channel
IGuildChannelThe 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
user
PartialGuildUserThe PartialGuildUser to acquire permissions for.
guild
RestGuildThe RestGuild to acquire the permissions from.
channel
IGuildChannelThe 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
user
PartialGuildUserThe PartialGuildUser to acquire permissions for.
guild
RestGuildThe 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
user
PartialGuildUserThe PartialGuildUser to acquire roles for.
guild
RestGuildThe RestGuild to acquire the roles from.