Show / Hide Table of Contents

    Class PermissionMethods

    Inheritance
    Object
    PermissionMethods
    Namespace: DSharpPlus
    Assembly: cs.temp.dll.dll
    Syntax
    public static class PermissionMethods

    Methods

    Grant(Permissions, Permissions)

    Grants permissions.

    Declaration
    public static Permissions Grant(this Permissions p, Permissions grant)
    Parameters
    Type Name Description
    Permissions p

    The permissions to add to.

    Permissions grant

    Permission to add.

    Returns
    Type Description
    Permissions

    HasPermission(Permissions, Permissions)

    Calculates whether this permission set contains the given permission.

    Declaration
    public static bool HasPermission(this Permissions p, Permissions permission)
    Parameters
    Type Name Description
    Permissions p

    The permissions to calculate from

    Permissions permission

    permission you want to check

    Returns
    Type Description
    Boolean

    Revoke(Permissions, Permissions)

    Revokes permissions.

    Declaration
    public static Permissions Revoke(this Permissions p, Permissions revoke)
    Parameters
    Type Name Description
    Permissions p

    The permissions to take from.

    Permissions revoke

    Permission to take.

    Returns
    Type Description
    Permissions
    Back to top © 2016-2022 DSharpPlus Contributors