File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -134,14 +134,24 @@ def response(self) -> InteractionResponse:
134
134
135
135
@property
136
136
def respond (self ):
137
- return self .followup .send if self .response .is_done () else self .interaction .response .send_message
137
+ if not self .response .is_done ():
138
+ return self .interaction .response .send_message
139
+ else :
140
+ raise RuntimeError ("Interaction was already issued a response. Try using ApplicationContext.followup() instead." )
141
+
142
+ @property
143
+ def followup (self ):
144
+ if self .response .is_done ():
145
+ return self .followup .send
146
+ else :
147
+ raise RuntimeError ("Interaction was not yet issued a response. Try using ApplicationContext.respond() first." )
138
148
139
149
@property
140
150
def defer (self ):
141
151
return self .interaction .response .defer
142
152
143
153
@property
144
- def followup (self ):
154
+ def followup_webhook (self ):
145
155
return self .interaction .followup
146
156
147
157
async def delete (self ):
You can’t perform that action at this time.
0 commit comments