@@ -364,11 +364,13 @@ async def note(self, message: discord.Message) -> None:
364
364
if not message .content and not message .attachments :
365
365
raise MissingRequiredArgument (param (name = "msg" ))
366
366
367
- await asyncio .gather (
367
+ _ , msg = await asyncio .gather (
368
368
self .bot .api .append_log (message , self .channel .id , type_ = "system" ),
369
369
self .send (message , self .channel , note = True ),
370
370
)
371
371
372
+ return msg
373
+
372
374
async def reply (self , message : discord .Message , anonymous : bool = False ) -> None :
373
375
if not message .content and not message .attachments :
374
376
raise MissingRequiredArgument (param (name = "msg" ))
@@ -579,7 +581,8 @@ async def send(
579
581
else :
580
582
mentions = None
581
583
582
- await destination .send (mentions , embed = embed )
584
+ _msg = await destination .send (mentions , embed = embed )
585
+
583
586
if additional_images :
584
587
self .ready = False
585
588
await asyncio .gather (* additional_images )
@@ -588,6 +591,8 @@ async def send(
588
591
if delete_message :
589
592
self .bot .loop .create_task (ignore (message .delete ()))
590
593
594
+ return _msg
595
+
591
596
def get_notifications (self ) -> str :
592
597
config = self .bot .config
593
598
key = str (self .id )
@@ -791,9 +796,7 @@ def format_info_embed(self, user, log_url, log_count, color):
791
796
if role_names :
792
797
embed .add_field (name = "Roles" , value = role_names , inline = True )
793
798
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)" )
797
800
798
801
if log_count :
799
802
# embed.add_field(name='Past logs', value=f'{log_count}')
0 commit comments