-
Notifications
You must be signed in to change notification settings - Fork 0
/
DisCatSharp Executable Group.snippet
54 lines (54 loc) · 1.61 KB
/
DisCatSharp Executable Group.snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>DisCatSharp Executable Group Command</Title>
<Author>FRNathan13</Author>
<Description>Create empty command executable group.</Description>
<HelpUrl>
</HelpUrl>
<Shortcut>dcs_executable_group_command</Shortcut>
</Header>
<Snippet>
<Imports>
<Import>
<Namespace>System.Threading.Tasks</Namespace>
</Import>
<Import>
<Namespace>DisCatSharp.CommandsNext</Namespace>
</Import>
<Import>
<Namespace>DisCatSharp.CommandsNext.Attributes</Namespace>
</Import>
</Imports>
<Declarations>
<Literal Editable="true">
<ID>GroupName</ID>
<ToolTip>Group Name</ToolTip>
<Default>MyGroup</Default>
<Function>
</Function>
</Literal>
<Literal Editable="true">
<ID>GroupCommandName</ID>
<ToolTip>Group Command Name</ToolTip>
<Default>mygroup</Default>
<Function>
</Function>
</Literal>
</Declarations>
<Code Language="csharp" Delimiter="$" Kind="type decl"><![CDATA[[Group("$GroupCommandName$")]
public partial class $GroupName$ : BaseCommandModule
{
[GroupCommand]
public async Task ExecuteGroupAsync(CommandContext ctx)
{
$selected$$end$
}
}]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>