Skip to content

Commit f0c4db9

Browse files
authored
Merge pull request #7 from Ditttt/main
fix the code in the !grpcmd snippet column
2 parents 7550e38 + d682b6a commit f0c4db9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

snippets/snippets.code-snippets

+6-6
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,18 @@
9999
"discord.py Group Template": {
100100
"prefix": "!grp",
101101
"body": [
102-
"@${1|bot,client,commands|}.group(invoke_without_subcommnads=True${3:, aliases=[\"$4\"]})",
103-
"async def ${2:group_name}(self, ctx$11):",
102+
"@${1|bot,client,commands|}.group(invoke_without_${3|subcommands,commands|}=${4|True,False|}, name=\"${5:groupcommand_name}\" ${6:, aliases=[\"$7\"]})",
103+
"async def ${2:group_name}(self, ctx$14):",
104104
" await ctx.send(\"$0\")",
105105
"",
106106
"",
107-
"@${2:group_name}.command(name=\"${5:subcommand_name}\"${6:, aliases=[\"$7\"]})",
108-
"async def $2_${5:subcommand_name}(self, ctx$12):",
107+
"@${2:group_name}.command(name=\"${8:subcommand_name}\"${9:, aliases=[\"$10\"]})",
108+
"async def $2_${8:subcommand_name}(self, ctx$15):",
109109
" await ctx.send(\"\")",
110110
"",
111111
"",
112-
"@${2:group_name}.command(name=\"${8:subcommand_name}\"${9:, aliases=[\"$10\"]})",
113-
"async def $2_${8:subcommand_name}(self, ctx$13):",
112+
"@${2:group_name}.command(name=\"${11:subcommand_name}\"${12:, aliases=[\"$13\"]})",
113+
"async def $2_${11:subcommand_name}(self, ctx$16):",
114114
" await ctx.send(\"\")"
115115
],
116116
"description": "A group template"

0 commit comments

Comments
 (0)