banUser

open override fun banUser(guildId: Long, userId: Long, deleteMessageDuration: Duration, reason: String?): CompletableDeferred<NoResult>(source)

Bans a user from the guild.

Return

A CompletableDeferred that will ban the user.

Parameters

guildId

The id of the guild.

userId

The id of the user.

deleteMessageDuration

The duration of the messages to delete.

reason

The reason for the ban.