What's the best way to watch for activity changes on a channel

Hello 👋 I would like to know what's the best way to develop temporary text and voice channel based on activity. I was going to listen to the message* or voiceStateUpdate events (based on channel type) to update in a database their last activity, and at the same time send an event to warn that a new activity has been detected and thus restart the counter before deleting. However, an implementation like this one seems to me too heavy: retrieving each time the linked resource from the DB, updating it, always have a counter running, and that for each monitored channel. Would you have better ideas to improve my behavior?
0 Replies
No replies yetBe the first to reply to this messageJoin