File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -644,9 +644,9 @@ def handle_message_parameters(
644
644
payload ["embeds" ] = [] if embed is None else [embed .to_dict ()]
645
645
if content is not MISSING :
646
646
payload ["content" ] = str (content ) if content is not None else None
647
- attachments = []
647
+ _attachments = []
648
648
if attachments is not MISSING :
649
- attachments = [a .to_dict () for a in attachments ]
649
+ _attachments = [a .to_dict () for a in attachments ]
650
650
651
651
if view is not MISSING :
652
652
payload ["components" ] = view .to_components () if view is not None else []
@@ -689,16 +689,16 @@ def handle_message_parameters(
689
689
"content_type" : "application/octet-stream" ,
690
690
}
691
691
)
692
- attachments .append (
692
+ _attachments .append (
693
693
{
694
694
"id" : index ,
695
695
"filename" : file .filename ,
696
696
"description" : file .description ,
697
697
}
698
698
)
699
699
700
- if attachments :
701
- payload ["attachments" ] = attachments
700
+ if _attachments :
701
+ payload ["attachments" ] = _attachments
702
702
703
703
if multipart_files :
704
704
multipart .append ({"name" : "payload_json" , "value" : utils ._to_json (payload )})
You can’t perform that action at this time.
0 commit comments