ban

inline suspend fun GuildBehavior.ban(userId: Snowflake, builder: BanCreateBuilder.() -> Unit)(source)

Requests to ban the given userId in this guild.

Throws

if something went wrong during the request.


inline suspend fun MemberBehavior.ban(builder: BanCreateBuilder.() -> Unit = {})(source)

Requests to ban this member.

Throws

if something went wrong during the request.