mercredi 7 avril 2021

how do i use user's ID for matching it with a condition so that when the user sends message to channel, the bot can do specific tasks for the user


I have tried:

if message.channel.category.id == 774267322687815710:
  if user.id == 415884831805931551:
      await message.add_reaction("đŸ”„")

I have tried this but seems like I cannot make it work for the message that is being sent by the user, it only fetches the user's id

Aucun commentaire:

Enregistrer un commentaire