File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,20 @@ async def syncSlashCommands(self, ctx: commands.Context):
29
29
@commands .command ()
30
30
@Protected .legacy (PermissionPreset .Developer )
31
31
async def load (self , ctx : commands .Context , extension ):
32
- await self .client .load_extension (f'cogs.{ extension } ' )
32
+ await self .client .load_extension (f'. cogs.{ extension } ' , package = 'src ' )
33
33
await ctx .message .add_reaction ('✅' )
34
34
35
35
@commands .command ()
36
36
@Protected .legacy (PermissionPreset .Developer )
37
37
async def unload (self , ctx : commands .Context , extension ):
38
- await self .client .unload_extension (f'cogs.{ extension } ' )
38
+ await self .client .unload_extension (f'. cogs.{ extension } ' , package = 'src ' )
39
39
await ctx .message .add_reaction ('✅' )
40
40
41
41
@commands .command ()
42
42
@Protected .legacy (PermissionPreset .Developer )
43
43
async def reload (self , ctx : commands .Context , extension ):
44
- await self .client .unload_extension (f'cogs.{ extension } ' )
45
- await self .client .load_extension (f'cogs.{ extension } ' )
44
+ await self .client .unload_extension (f'. cogs.{ extension } ' , package = 'src ' )
45
+ await self .client .load_extension (f'. cogs.{ extension } ' , package = 'src ' )
46
46
await ctx .message .add_reaction ('✅' )
47
47
48
48
You can’t perform that action at this time.
0 commit comments