Closed Barabazs closed 1 year ago
Could not replicate, userbot added account instantly on receiving a friendship request. Your code works. Consider that you might have a friend limit on an account or another factor not allowing adding a new friend. System Information
Attaching code used to test
import discord
TOKEN = "huh?"
class RelationshipTest(discord.Client):
async def on_relationship_add(self, relationship):
"""Event subscriber for when a relationship is added"""
if relationship.type == discord.RelationshipType.incoming_request:
await relationship.accept()
c = RelationshipTest()
c.run(TOKEN)
Sorry I ignored this issue. What you're seeing here is a captcha, update to the alpha to be able to handle them.
Summary
Accepting a friend request results in an error.
Reproduction Steps
I have an event subscriber for incoming friend requests and it should automatically accept these requests. See code below.
Code
Expected Results
The friend request should be accepted.
Actual Results
System Information
Checklist
Additional Information
I have seen this behaviour on v1.9.2 and the latest v2.0.0a (main branch).