@@ -304,7 +304,7 @@ async def _command_body(self, ctx, args: Tuple):
304304 await ctx .reply ("That image is too large." , mention_author = False )
305305 return
306306
307- @commands .hybrid_command ()
307+ @commands .hybrid_group ()
308308 @commands .bot_has_permissions (attach_files = True )
309309 async def distort (self , ctx ):
310310 """
@@ -315,7 +315,7 @@ async def distort(self, ctx):
315315 pass
316316
317317 @distort .command ()
318- async def jpeg (self , ctx , intensity : Optional [float ] = 10 , * , link : Optional [str ] = None ):
318+ async def jpeg (self , ctx , intensity : Optional [int ] = 10 , * , link : Optional [str ] = None ):
319319 """
320320 Applies JPEG compression to image
321321 """
@@ -330,7 +330,7 @@ async def jpeg(self, ctx, intensity: Optional[float] = 10, *, link: Optional[str
330330 await self ._command_body (ctx , args = (self ._jpeg_compress , img , quality ))
331331
332332 @distort .command ()
333- async def barrel (self , ctx , intensity : Optional [float ] = 10 , * , link : Optional [str ] = None ):
333+ async def barrel (self , ctx , intensity : Optional [int ] = 10 , * , link : Optional [str ] = None ):
334334 """
335335 Bulges the center of the image outward
336336 """
@@ -356,7 +356,7 @@ async def barrel(self, ctx, intensity: Optional[float] = 10, *, link: Optional[s
356356 )
357357
358358 @distort .command ()
359- async def implode (self , ctx , intensity : Optional [float ] = 10 , * , link : Optional [str ] = None ):
359+ async def implode (self , ctx , intensity : Optional [int ] = 10 , * , link : Optional [str ] = None ):
360360 """
361361 Pinches in the center of the image
362362 """
@@ -371,7 +371,7 @@ async def implode(self, ctx, intensity: Optional[float] = 10, *, link: Optional[
371371 await self ._command_body (ctx , args = (self ._distortion , img , "implode" , (amount * intensity ,)))
372372
373373 @distort .command ()
374- async def swirl (self , ctx , intensity : Optional [float ] = 10 , * , link : Optional [str ] = None ):
374+ async def swirl (self , ctx , intensity : Optional [int ] = 10 , * , link : Optional [str ] = None ):
375375 """
376376 Swirls the center of the image
377377 """
@@ -400,7 +400,7 @@ async def swirl(self, ctx, intensity: Optional[float] = 10, *, link: Optional[st
400400 await self ._command_body (ctx , args = (self ._distortion , img , "swirl" , (intensity ,)))
401401
402402 @distort .command ()
403- async def charcoal (self , ctx , intensity : Optional [float ], * , link : Optional [str ] = None ):
403+ async def charcoal (self , ctx , intensity : Optional [int ], * , link : Optional [str ] = None ):
404404 """
405405 Makes the image look somewhat like it was drawn with charcoal
406406 """
@@ -414,7 +414,7 @@ async def charcoal(self, ctx, intensity: Optional[float], *, link: Optional[str]
414414 await self ._command_body (ctx , args = (self ._distortion , img , "charcoal" , (1.5 , 0.5 )))
415415
416416 @distort .command ()
417- async def sketch (self , ctx , intensity : Optional [float ], * , link : Optional [str ] = None ):
417+ async def sketch (self , ctx , intensity : Optional [int ], * , link : Optional [str ] = None ):
418418 """
419419 Makes the image look like it is a sketch
420420 """
@@ -428,7 +428,7 @@ async def sketch(self, ctx, intensity: Optional[float], *, link: Optional[str] =
428428 await self ._command_body (ctx , args = (self ._distortion , img , "sketch" , (0.5 , 0.0 , 98.0 )))
429429
430430 @distort .command ()
431- async def zoom (self , ctx , intensity : Optional [float ], * , link : Optional [str ] = None ):
431+ async def zoom (self , ctx , intensity : Optional [int ], * , link : Optional [str ] = None ):
432432 """
433433 Zooms in on the center of an image
434434 """
0 commit comments