Interface ISlashCommandRequirementBuildService
Holds all the methods to build InteractionRequirementAttribute for the slash commands.
Namespace: Color_Chan.Discord.Commands.Services.Builders
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public interface ISlashCommandRequirementBuildService
Methods
| Improve this Doc View SourceGetCommandRequirements(MethodInfo)
Get a System.Collections.Generic.IEnumerable<T> of InteractionRequirementAttribute for a specific
command
.
Declaration
IEnumerable<InteractionRequirementAttribute> GetCommandRequirements(MethodInfo command)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | command | The command method that will be used to find the InteractionRequirementAttribute s. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<InteractionRequirementAttribute> | A System.Collections.Generic.IEnumerable<T> of InteractionRequirementAttribute for the given
|