Skip to main content

(Un)blocking users

You can block or unblock users from using Yunite on your server using this endpoint.

POST
Block or unblock a Discord or Epic user
https://yunite.xyz/api/v3/guild/{guildId}/registration/blocks
Path Parameters
NameValue typeDescription
guildIdGuild ID SnowflakeThe ID of the guild you want to access
Request Body
{
    "type": "object",
    "properties": {
        "op": {
            "type": "string",
            "value": "one of ['BLOCK', 'UNBLOCK']"
        },
        "userType": {
            "type": "string",
            "value": "one of ['DISCORD', 'EPIC']"
        },
        "userId": {
            "type": "string",
            "value": "DisordID / EpicID, depending on given type"
        },
        "reason": {
            "type": "string",
            "value": "add a reason for blocking the user; required if blocking, ignored if unblocking"
        },
        "blockLinkedUser": {
            "type": "boolean",
            "value": "set to true if the linked user should be block as well if present; set to false otherwise"
        }
    }
}