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):
2929 @commands .command ()
3030 @Protected .legacy (PermissionPreset .Developer )
3131 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 ' )
3333 await ctx .message .add_reaction ('✅' )
3434
3535 @commands .command ()
3636 @Protected .legacy (PermissionPreset .Developer )
3737 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 ' )
3939 await ctx .message .add_reaction ('✅' )
4040
4141 @commands .command ()
4242 @Protected .legacy (PermissionPreset .Developer )
4343 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 ' )
4646 await ctx .message .add_reaction ('✅' )
4747
4848
You can’t perform that action at this time.
0 commit comments