Closed GrandpaRex closed 1 year ago
Hey, the issue may be that the default version of the Discord API (v6) doesn't yet support the X-Audit-Log-Reason
header: https://discord.com/api/v10/
Try changing the endpoint in line 82 to "https://discord.com/api/v10/"
. This may solve this issue, but could break other function that use endpoints that were changed since version 6.
I found an issue with the getting of the discodid, when I went and looked at the main branch I discovered that I had an outdated version. This is no longer an issue
So I am attempting to use the SetNickname export, I've followed the included example in the example.lua
My code;
exports.Badger_Discord_API:SetNickname(source, "Test Name", "New Name")
I'm using this in a server script, I'm calling source from the source arg passed by the RegisterCommand native.
I keep getting the message
[Badger_Perms] ERROR: Code 200 was not reached. Error Code: Error - The request was improperly formatted, or the server couldn't understand it..!