@@ -71,7 +71,7 @@ def __init__(self):
7171 self ._api = None
7272 self .metadata_loop = None
7373 self .formatter = SafeFormatter ()
74- self .loaded_cogs = [' cogs.modmail' , ' cogs.plugins' , ' cogs.utility' ]
74+ self .loaded_cogs = [" cogs.modmail" , " cogs.plugins" , " cogs.utility" ]
7575
7676 self ._connected = asyncio .Event ()
7777 self .start_time = datetime .utcnow ()
@@ -829,7 +829,7 @@ async def process_commands(self, message):
829829
830830 thread = await self .threads .find (channel = ctx .channel )
831831 if thread is not None :
832- if self .config .get (' reply_without_command' ):
832+ if self .config .get (" reply_without_command" ):
833833 await thread .reply (message )
834834 else :
835835 await self .api .append_log (message , type_ = "internal" )
@@ -857,7 +857,7 @@ async def _void(*_args, **_kwargs):
857857 if thread :
858858 await thread .channel .trigger_typing ()
859859 else :
860- if not self .config .get (' mod_typing' ):
860+ if not self .config .get (" mod_typing" ):
861861 return
862862
863863 thread = await self .threads .find (channel = channel )
@@ -895,7 +895,7 @@ async def on_raw_reaction_add(self, payload):
895895
896896 if isinstance (channel , discord .DMChannel ):
897897 if str (reaction ) == str (close_emoji ): # closing thread
898- if not self .config .get (' recipient_thread_close' ):
898+ if not self .config .get (" recipient_thread_close" ):
899899 return
900900 thread = await self .threads .find (recipient = user )
901901 ts = message .embeds [0 ].timestamp if message .embeds else None
@@ -953,8 +953,7 @@ async def on_member_remove(self, member):
953953 thread = await self .threads .find (recipient = member )
954954 if thread :
955955 embed = discord .Embed (
956- description = "The recipient has left the server." ,
957- color = self .error_color ,
956+ description = "The recipient has left the server." , color = self .error_color
958957 )
959958 await thread .channel .send (embed = embed )
960959
@@ -1018,9 +1017,7 @@ async def on_command_error(self, context, exception):
10181017 elif isinstance (exception , commands .BadArgument ):
10191018 await context .trigger_typing ()
10201019 await context .send (
1021- embed = discord .Embed (
1022- color = self .error_color , description = str (exception )
1023- )
1020+ embed = discord .Embed (color = self .error_color , description = str (exception ))
10241021 )
10251022 elif isinstance (exception , commands .CommandNotFound ):
10261023 logger .warning ("CommandNotFound: %s" , exception )
0 commit comments