File tree Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Expand file tree Collapse file tree 1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -627,14 +627,25 @@ async def respond(self,
627
627
flags .suppress_embeds = True
628
628
data ['flags' ] = flags .value
629
629
if self .deferred and self .callback_message and self .callback_message .flags .loading :
630
- method = state .http .edit_interaction_response (
631
- token = self ._token ,
632
- interaction_id = self .id ,
633
- application_id = self ._application_id ,
634
- data = data ,
635
- files = files ,
636
- deferred = self .deferred
637
- )
630
+ if not self .messages :
631
+ method = state .http .edit_interaction_response (
632
+ token = self ._token ,
633
+ interaction_id = self .id ,
634
+ application_id = self ._application_id ,
635
+ data = data ,
636
+ files = files ,
637
+ deferred = self .deferred
638
+ )
639
+ else :
640
+ method = state .http .send_interaction_response (
641
+ token = self ._token ,
642
+ interaction_id = self .id ,
643
+ application_id = self ._application_id ,
644
+ data = data ,
645
+ files = files ,
646
+ followup = True ,
647
+ deferred = self .deferred ,
648
+ )
638
649
else :
639
650
if not self .callback_message :
640
651
method = state .http .send_interaction_response (
You can’t perform that action at this time.
0 commit comments