@@ -183,6 +183,8 @@ async def confess_inner(
183183 type_ : ConfessionType ,
184184 reply : str | None = None ,
185185 ):
186+ await ia .response .defer (ephemeral = True , thinking = True )
187+
186188 config = await Config .get (ia .guild_id )
187189 approval_channel = discord .utils .get (
188190 ia .guild .channels , id = config .confession_approval_channel
@@ -194,15 +196,15 @@ async def confess_inner(
194196 if reply is not None :
195197 reply_msg_id = await self .bot .redis .get (f"confession:{ reply } " )
196198 if reply_msg_id is None :
197- await ia .response . send_message (
199+ await ia .followup . send (
198200 f"{ reply } is not a valid confession ID" , ephemeral = True
199201 )
200202 return
201203
202204 try :
203205 await confession_channel .fetch_message (int (reply_msg_id ))
204206 except discord .errors .HTTPException :
205- await ia .response . send_message (
207+ await ia .followup . send (
206208 f"{ reply } is not a valid confession ID (keep in mind that you cannot reply to other replies)" ,
207209 ephemeral = True ,
208210 )
@@ -220,7 +222,7 @@ async def confess_inner(
220222
221223 await confession_wrapper .send_pending ()
222224
223- await ia .response . send_message (
225+ await ia .followup . send (
224226 content = confession_wrapper .type_ .success_msg , ephemeral = True
225227 )
226228
0 commit comments