replyとdeferReply、updateとdeferUpdateの違い
Discord からinteractionCreateイベントが発行された場合、クライアントは3秒以内に応答することが期待されている。
Interaction tokens are valid for 15 minutes and can be used to send followup messages but you must send an initial response within 3 seconds of receiving the event. If the 3 second deadline is exceeded, the token will be invalidated.
しかし、3秒で応答が返せない可能性があることも現実にはあり得る。
その場合はdeferReply、deferUpdateを用いる
15分まで待ってくれるけど、進捗表示とかするべき…tig.icon
deferReply、deferUpdateを使用した場合結果はfollowUpを用いて送信する
それ以外の場合はreply、updateを用いることができる
以下は3秒以内にBotが応答しなかった場合
https://gyazo.com/a18fc6ac7b3483f332938db0ec0c25b6
deferしたあと(followUp前)
https://gyazo.com/43505f9b7e0a33f5186e5071cf837050