Search Results for

    Show / Hide Table of Contents

    Class RequireCommunityAttribute

    Defines that a command is only usable within a community-enabled guild.

    Inheritance
    System.Object
    System.Attribute
    CheckBaseAttribute
    RequireCommunityAttribute
    Namespace: DisCatSharp.CommandsNext.Attributes
    Assembly: DisCatSharp.CommandsNext.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false)]
    public sealed class RequireCommunityAttribute : CheckBaseAttribute

    Constructors

    | Improve this Doc View Source

    RequireCommunityAttribute()

    Defines that this command is only usable within a community-enabled guild.

    Declaration
    public RequireCommunityAttribute()

    Methods

    | Improve this Doc View Source

    ExecuteCheckAsync(CommandContext, Boolean)

    Executes the a check.

    Declaration
    public override Task<bool> ExecuteCheckAsync(CommandContext ctx, bool help)
    Parameters
    Type Name Description
    CommandContext ctx

    The command context.

    System.Boolean help

    If true, help - returns true.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>
    Overrides
    CheckBaseAttribute.ExecuteCheckAsync(CommandContext, Boolean)

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems