Show / Hide Table of Contents

    Class DiscordIntentExtensions

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

    Methods

    AddIntent(DiscordIntents, DiscordIntents)

    Adds an intent to these intents.

    Declaration
    public static DiscordIntents AddIntent(this DiscordIntents intents, DiscordIntents toAdd)
    Parameters
    Type Name Description
    DiscordIntents intents

    The base intents.

    DiscordIntents toAdd

    The intents to add.

    Returns
    Type Description
    DiscordIntents

    HasIntent(DiscordIntents, DiscordIntents)

    Calculates whether these intents have a certain intent.

    Declaration
    public static bool HasIntent(this DiscordIntents intents, DiscordIntents search)
    Parameters
    Type Name Description
    DiscordIntents intents

    The base intents.

    DiscordIntents search

    The intents to search for.

    Returns
    Type Description
    Boolean

    RemoveIntent(DiscordIntents, DiscordIntents)

    Removes an intent from these intents.

    Declaration
    public static DiscordIntents RemoveIntent(this DiscordIntents intents, DiscordIntents toRemove)
    Parameters
    Type Name Description
    DiscordIntents intents

    The base intents.

    DiscordIntents toRemove

    The intents to remove.

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