#Detect if user has mute (event)

1 messages · Page 1 of 1 (latest)

latent scroll
#

Hi, i wanna run a function if a user gets a ban.

Now i have atm:

    @commands.Cog.listener()
    async def on_member_update(self, before, after):
        print(before.timeout, " ", after.timeout)```

Now `before.timeout` and `after.timeout` gives the same response when giving an timeout / removing a timeout. How can i get the difference?
chrome mulch
#

Member.timeout is the method to set a timeout on a user, you're probably looking for .current_timeout instead

latent scroll
#

Thanks, works!