Interface ISlashCommandGuildBuildService
Holds all the methods to build ISlashCommandInfo for guilds only.
Namespace: Color_Chan.Discord.Commands.Services.Builders
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public interface ISlashCommandGuildBuildService
Methods
| Improve this Doc View SourceGetCommandGuilds(MethodInfo, Boolean)
Get a System.Collections.Generic.IEnumerable<T> of SlashCommandGuildAttribute for a specific
command
.
Declaration
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
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 |