Class SlashCommandGuildBuildService
Holds all the methods to build ISlashCommandInfo for guilds only.
Inheritance
Implements
Inherited Members
Namespace: Color_Chan.Discord.Commands.Services.Implementations.Builders
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public class SlashCommandGuildBuildService : ISlashCommandGuildBuildService
Constructors
| Improve this Doc View SourceSlashCommandGuildBuildService(ILogger<SlashCommandGuildBuildService>)
Initializes a new instance of SlashCommandGuildBuildService.
Declaration
public SlashCommandGuildBuildService(ILogger<SlashCommandGuildBuildService> logger)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger<SlashCommandGuildBuildService> | logger | The Microsoft.Extensions.Logging.ILogger for SlashCommandGuildBuildService. |
Methods
| Improve this Doc View SourceGetCommandGuilds(MethodInfo, Boolean)
Get a System.Collections.Generic.IEnumerable<T> of SlashCommandGuildAttribute for a specific
command
.
Declaration
public IEnumerable<SlashCommandGuildAttribute> GetCommandGuilds(MethodInfo command, bool includeParentAttributes = true)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodInfo | command | The command method that will be used to find the SlashCommandGuildAttributes. |
System.Boolean | includeParentAttributes | Whether or not to include the parents attributes. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SlashCommandGuildAttribute> | A System.Collections.Generic.IEnumerable<T> of SlashCommandGuildAttribute for the given
|
GetCommandGuilds(Type)
Get a System.Collections.Generic.IEnumerable<T> of SlashCommandGuildAttribute for a specific SlashCommandModule
Declaration
public IEnumerable<SlashCommandGuildAttribute> GetCommandGuilds(Type commandModule)
Parameters
Type | Name | Description |
---|---|---|
System.Type | commandModule | The command module that will be used to find the SlashCommandGuildAttribute s. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SlashCommandGuildAttribute> | A System.Collections.Generic.IEnumerable<T> of SlashCommandGuildAttribute for the given SlashCommandModule |