Table of Contents

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 PartialGuildUser

The PartialGuildUser to acquire permissions for.

guild Guild

The RestGuild to acquire the permissions from.

channelId ulong

The ID of the IGuildChannel to acquire the permissions for.

Returns

Permissions

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 PartialGuildUser

The PartialGuildUser to acquire permissions for.

guildPermissions Permissions

The Permissions object to acquire permissions from.

channel IGuildChannel

The IGuildChannel to acquire the permissions for.

Returns

Permissions

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 PartialGuildUser

The PartialGuildUser to acquire permissions for.

guild RestGuild

The RestGuild to acquire the permissions from.

channel IGuildChannel

The IGuildChannel to acquire the permissions for.

Returns

Permissions

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 PartialGuildUser

The PartialGuildUser to acquire permissions for.

guild RestGuild

The RestGuild to acquire the permissions from.

Returns

Permissions

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 PartialGuildUser

The PartialGuildUser to acquire roles for.

guild RestGuild

The RestGuild to acquire the roles from.

Returns

IEnumerable<Role>