How can I kick or ban a user from a Discord server?

I’m trying to automate the process of kicking or banning members from my Discord server using Make.com. I know that the native Discord modules don’t have kick/ban actions, so I assume this has to be done using the HTTP module.

I already have a bot in my server with the right permissions (Kick Members and Ban Members), and I have my bot token, user ID, and server ID ready. But I’m a bit stuck on how to properly set up the API call and handle issues like permissions or error codes (403, 404, etc.).

If anyone has a working example or a step-by-step guide, I’d really appreciate the help! :folded_hands:

Thanks in advance!

Unfortunately, Make doesn’t have a module for these endpoints yet.

See if these endpoints exist in the external service’s Developer API Reference/Documentation. if yes, you can integrate the endpoint in Make using the app’s universal module (Make an API Call) or generic HTTP “Make a request” module.

These are probably the endpoints you are looking for:

You can also suggest for it to be made in the Idea exchange. Don’t forget to search for it first, just in case someone already suggested it, so that you don’t end up creating a duplicate.

If you need assistance in setting up the app’s universal module, or the built-in generic HTTP module, please provide additional information about what you have tried in relation to the external service’s Developer API Reference — how you are setting the connection up, a link to the endpoint/s are you trying to connect to, and what errors you are encountering.

You can also complete this brand new course/tutorial in the Make Academy on how to use external APIs — API calls with HTTP modules

  • API and Endpoints
  • Header and body
  • Multipart/form-data
  • OAuth 2.0

Hope this helps! Let me know if there are any further questions or issues.

@samliew