Discord.py get user minutes in vc

Viewed 2510

So I'm trying to code a discord bot with discord.py rewrite, but I can't find an answer to see user vc time. How do I get this?

1 Answers

You can use the on_voice_state_update() event to track users joining & leaving channels, and then store the timestamps of joining & leaving in a database or json file. Then, the time spent in each channel is leave - join.

Related