Skip to content

Additional permission needed #4

@Djones4822

Description

@Djones4822

It appears that the bot needs "Can ban members" permission too? I was getting a "missing permissions" error from the discord client until I added that

discord4j.rest.http.client.ClientException: DELETE /guilds/1115355038152396902/members/1116871576177086534 returned 403 Forbidden with response {code=50013, message=Missing Permissions}
        at discord4j.rest.http.client.ClientResponse.clientException(ClientResponse.java:171) ~[discord4j-rest-3.1.0.jar!/:3.1.0]
        Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
        |_ checkpoint ⇢ Request to DELETE /guilds/1115355038152396902/members/1116871576177086534 [RequestStream]
        |_ checkpoint ⇢ Request to DELETE /guilds/1115355038152396902/members/1116871576177086534 [DefaultRouter]

The permissions integer I'm using now is 11334

Edit: and it may be obvious but I didn't realize this either, the role of the bot needs to be higher than any role being monitored.

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