Skip to content

Bans being handled incorrectly (Part #2) #51

@Slydelix

Description

@Slydelix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions