DSC: Discord slash commands repo hosted in cloudflare worker, also part of Athena bot
DS:Discord service which will be part of Athena bot
Description
Certain commands in the DSC, such as /mention-each and /notify, may require additional time for processing.
Discord enforces a strict 3-second time limit for responding to interaction calls, leading to command failure if exceeded.
Discord provides a solution for this problem through its Followup APIs, allowing the editing of responses and adding follow-up messages based on a command (Read more).
To work within the time constraints, DSC can respond with an initial message which serves as acknowledgment, ensuring users know their command has been received.
DSC will also forward this request to DS for further processing.
DS will be responsible for processing and updating initial acknowledgment message.
Sequence Diagram
View Image
POC
View Video
https://github.com/Real-Dev-Squad/todo-action-items/assets/98796547/3272eaf0-7ad1-4294-a171-f21c1ff00188
Other considerations:
DSC can be deprecated and all of its functionalities can be moved to DS.
Glossary:
DSC: Discord slash commands repo hosted in cloudflare worker, also part of Athena bot DS: Discord service which will be part of Athena bot
Description
/mention-each
and/notify
, may require additional time for processing.Sequence Diagram
View Image
POC
View Video
https://github.com/Real-Dev-Squad/todo-action-items/assets/98796547/3272eaf0-7ad1-4294-a171-f21c1ff00188Other considerations: