Is there something like onFirendRequestAccepted?

Question:

I’m starting to work with discord API via discord.py module. I’ve been through docs, but I’ve not found anything like this.

So, here’s the question:

Is there some event trigger like onFirendRequestAccepted which runs the function when someone accept your friend request?

Asked By: Dmitry Arkhipenko

||

Answers:

The below is outdated since v2.0 of discord.py, which removes the 3 events listed.

Old answer:

The rewrite branch contains on_relationship_add, on_relationship_remove and on_relationship_update.

http://discordpy.readthedocs.io/en/rewrite/api.html?highlight=friend#discord.on_relationship_add

Answered By: Benjin
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.