Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

Is i possible to add reactions or edit tags in threads in forums with discord.py?

$
0
0

I have a discord bot that edits every new thread created to keep them organized on the same format, so whenever a new thread is created, it checks if it's on the correct format, and if it's not, it will edit the name to "Request #correct_request_number".

This part works perfectly, but I wanted to know if it's possible to edit the tags, or add reactions in threads, like the setting that allows us to choose a reaction that will be added to every new thread, the point is that I wanted it to add different reactions depending on some conditions like if the thread name was correct or needed to be edited

I tried this to add reactions, but I got an error saying thread does not have the add_reaction attribute

@bot.eventasync def on_thread_create(thread):    await thread.add_reaction('✅')

Any other method to do it?


Viewing all articles
Browse latest Browse all 23160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>