ban User
open fun banUser(userId: Long, deleteMessageDuration: Duration = Duration.ZERO, reason: String? = null): CompletableDeferred<NoResult>(source)
open fun banUser(userId: String, deleteMessageDuration: Duration = Duration.ZERO, reason: String? = null): CompletableDeferred<NoResult>(source)
Bans a user from the guild.
Return
A CompletableDeferred that completes when the ban is created.
Parameters
user Id
The id of the user.
delete Message Duration
The duration of the messages to delete.
reason
The reason for the ban.
Bans a user from the guild.
Return
A CompletableDeferred that completes when the ban is created.
Parameters
user Id
The id of the user.
reason
The reason for the ban.
open fun banUser(user: User, deleteMessageDuration: Duration = Duration.ZERO, reason: String? = null): CompletableDeferred<NoResult>(source)
Bans a user from the guild.
Parameters
user
The user to ban.
delete Message Duration
The duration of the messages to delete.
reason
The reason for the ban.