@@ -364,11 +364,13 @@ async def note(self, message: discord.Message) -> None:
364364 if not message .content and not message .attachments :
365365 raise MissingRequiredArgument (param (name = "msg" ))
366366
367- await asyncio .gather (
367+ _ , msg = await asyncio .gather (
368368 self .bot .api .append_log (message , self .channel .id , type_ = "system" ),
369369 self .send (message , self .channel , note = True ),
370370 )
371371
372+ return msg
373+
372374 async def reply (self , message : discord .Message , anonymous : bool = False ) -> None :
373375 if not message .content and not message .attachments :
374376 raise MissingRequiredArgument (param (name = "msg" ))
@@ -579,7 +581,8 @@ async def send(
579581 else :
580582 mentions = None
581583
582- await destination .send (mentions , embed = embed )
584+ _msg = await destination .send (mentions , embed = embed )
585+
583586 if additional_images :
584587 self .ready = False
585588 await asyncio .gather (* additional_images )
@@ -588,6 +591,8 @@ async def send(
588591 if delete_message :
589592 self .bot .loop .create_task (ignore (message .delete ()))
590593
594+ return _msg
595+
591596 def get_notifications (self ) -> str :
592597 config = self .bot .config
593598 key = str (self .id )
@@ -791,9 +796,7 @@ def format_info_embed(self, user, log_url, log_count, color):
791796 if role_names :
792797 embed .add_field (name = "Roles" , value = role_names , inline = True )
793798 else :
794- embed .set_footer (
795- text = f"{ footer } • (not in main server)"
796- )
799+ embed .set_footer (text = f"{ footer } • (not in main server)" )
797800
798801 if log_count :
799802 # embed.add_field(name='Past logs', value=f'{log_count}')
0 commit comments