Ban, unban & kick server members
How to manage the presence of server users.
Last updated
Was this helpful?
How to manage the presence of server users.
Last updated
Was this helpful?
For example, if the member swears, you can directly get their Member component and ban them within the "messageCreate" event.
to detect messages that have been created as well as their content.
You can also get the component in other ways by using different events or get the Member component by using REST methods such as getMember or the cache-only method located in the Client.
and apply the ban accordingly using the Member#ban method, this is the same way for unban, and kick as you can use Member#unban and Member#kick
These are the methods you can use using the Member component: