Discore
Show / Hide Table of Contents

Class DiscordPermissionHelper

Utilities for working with Discord user permissions.

Inheritance
object
DiscordPermissionHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Discore
Assembly: Discore.dll
Syntax
public static class DiscordPermissionHelper

Methods

Name Description
CanJoinVoiceChannel(IDiscordGuildMember, DiscordGuild, DiscordGuildVoiceChannel, int?)

Returns whether a guild member can join a given voice channel.

HasPermission(DiscordPermission, IDiscordGuildMember, DiscordGuild, DiscordGuildChannel?)

Returns whether a guild member has a set of permissions within the guild and optionally additionally within a specific guild channel.

HasPermission(DiscordPermission, Snowflake, IEnumerable<Snowflake>, Snowflake, Snowflake, IReadOnlyDictionary<Snowflake, DiscordRole>, IReadOnlyDictionary<Snowflake, DiscordOverwrite>?)

Returns whether a guild member has a set of permissions within the guild and optionally additionally within a specific guild channel.

PermissionsToString(DiscordPermission)

Creates a comma-delimited string of permission names specified by the given bitwise permission flag.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX