dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
717 stars 163 forks source link

Cannot send a message through the library, but I can through the official client #146

Closed ezrael-git closed 2 years ago

ezrael-git commented 2 years ago

Summary

Basically, whenever I try to send a private message to a user, it throws the 401 Forbidden error and says I need to verify my account to perform the action. However, I can send messages through the official client using the same account without any problems.

Reproduction Steps

I sent two or three DMs to make sure the library works and that led me here. After those DMs I could no longer send any private messages, which is weird since I didn't even spam anything or do it excessively so I have no idea how Discord figured it out. I'm sure it's the fork's fault since I can still send messages through the official client, using the same account.

Code

-

Expected Results

A DM is supposed to be sent.

Actual Results

I get the 401 Forbidden error. Here's the full error:

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: Forbidden: 403 Forbidden (error code: 40002): You need to verify your account in order to perform this action.

System Information

-

Checklist

Additional Information

-

dolfies commented 2 years ago

What version are you using? If you aren't, try the rebase branch (note it's experimental and does have issues).

ezrael-git commented 2 years ago

What version are you using? If you aren't, try the rebase branch (note it's experimental and does have issues).

I tried using rebase but I'm getting the same error. Weird.

dolfies commented 2 years ago

I believe I found the issue. Pushing a commit to rebase tonight.

dolfies commented 2 years ago

Scratch that, I was unable to reproduce on rebase. I was able to DM multiple users, even ones I've never interacted before.

ezrael-git commented 2 years ago

Strange. I used another stack of accounts and they seem to be able to DM users just fine. Thanks for the patience, closing the issue...