|
client.REST.DoRequest($"/guilds/{id}/bans/{userID}", RequestMethod.PUT, jsonObj, callback); |
As it says in the docs (https://discordapp.com/developers/docs/resources/guild#create-guild-ban) the ban reason and delete-message-days need to be provided as "query string params" and not json
How it should look: api/v6/guilds/{guild.id}/bans/{user.id}?delete-message-days=1&reason=banreason
Oxide.Ext.Discord/Oxide.Ext.Discord/DiscordObjects/Guild.cs
Line 210 in b26b676
As it says in the docs (https://discordapp.com/developers/docs/resources/guild#create-guild-ban) the ban reason and delete-message-days need to be provided as "query string params" and not json
How it should look: api/v6/guilds/{guild.id}/bans/{user.id}?delete-message-days=1&reason=banreason