|
99 | 99 | "discord.py Group Template": { |
100 | 100 | "prefix": "!grp", |
101 | 101 | "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):", |
104 | 104 | " await ctx.send(\"$0\")", |
105 | 105 | "", |
106 | 106 | "", |
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):", |
109 | 109 | " await ctx.send(\"\")", |
110 | 110 | "", |
111 | 111 | "", |
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):", |
114 | 114 | " await ctx.send(\"\")" |
115 | 115 | ], |
116 | 116 | "description": "A group template" |
|
0 commit comments