• Guides
  • Api Documentation
Show / Hide Table of Contents
  • Discord.Addons.MpGame
    • CurrentlyPlaying
    • GameBase<TPlayer>
    • IMpGameData
    • MpGameModuleBase<TService, TGame, TPlayer>
    • MpGameService<TGame, TPlayer>
    • MpGameService<TGame, TPlayer>.MpGameData
    • Player
  • Discord.Addons.MpGame.Collections
    • CircularLinkedList<T>
    • Hand<T>
    • IWrapper<T>
    • Node<T>
    • Pile<T>
    • WrappingPile<T, TWrapper>
  • Discord.Addons.Preconditions
    • Measure
    • MinimumOnlineUsersAttribute
    • RatelimitAttribute
    • RatelimitFlags
    • RequireLowerHierarchyAttribute
    • RequireRoleAttribute
    • UserMustBeInVoiceAttribute

Class MinimumOnlineUsersAttribute

Sets how many users must be online in order to run the command. This precondition ignores BOT accounts. This precondition automatically applies RequireContextAttribute.

Inheritance
Object
Attribute
PreconditionAttribute
RequireContextAttribute
MinimumOnlineUsersAttribute
Inherited Members
RequireContextAttribute.Contexts
RequireContextAttribute.ErrorMessage
PreconditionAttribute.Group
Namespace: Discord.Addons.Preconditions
Assembly: Discord.Addons.Preconditions.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class MinimumOnlineUsersAttribute : RequireContextAttribute

Constructors

| Improve this Doc View Source

MinimumOnlineUsersAttribute(UInt32)

Sets how many users must be online in order to run the command.

Declaration
public MinimumOnlineUsersAttribute(uint minimumUsers)
Parameters
Type Name Description
UInt32 minimumUsers

The minimum amount of users that must be online.

Methods

| Improve this Doc View Source

CheckPermissionsAsync(ICommandContext, CommandInfo, IServiceProvider)

Declaration
public override async Task<PreconditionResult> CheckPermissionsAsync(ICommandContext context, CommandInfo command, IServiceProvider services)
Parameters
Type Name Description
ICommandContext context
CommandInfo command
IServiceProvider services
Returns
Type Description
Task<PreconditionResult>
Overrides
RequireContextAttribute.CheckPermissionsAsync(ICommandContext, CommandInfo, IServiceProvider)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX