Discord.NET cannot view invite uses
I've been trying out Discord.NET and also tried to implement an invite tracking feature. While implementing this, I attempted to access the uses of an invite link, however, it always just returned 0 while the value should have been 3 in reality. I simplified the code as much as possible and the issue persisted.
The bot has Administrator permissions and all privileged intents enabled on the discord developer platform. I haven't heard anything about needing another scope, but I have the
bot
and the unrelated applications.commands
scopes enabled. Yes, i have also opened the generated link after changing the permissions and authorized the change. I also had the same issue with reading the contents of messages, though I have not tested this feature again. Thanks for any help in advance!3 Replies
I won't be staying up now so I hope I provided all necessary information.
Sounds like a default value to me, try to wrap this into a try catch blog and print out possible exceptions
Yes, it's the default value. The code runs fine and doesn't throw any Exceptions.