Alchemy.Client.ban_member
You're seeing just the function
ban_member
, go back to Alchemy.Client module for more information.
Link to this function
ban_member(guild_id, user_id, days \\ 0)
Bans a member from a guild.
This prevents a user from rejoining for as long as the ban persists,
as opposed to kick_member/2
which will just make them leave the server.
A days
paramater can be set to delete x days of messages; limited to 7.
Examples
Client.ban_member(guild_id, user_id, 1)