unbanUser

open fun unbanUser(userId: Long, reason: String? = null): CompletableDeferred<NoResult>(source)
open fun unbanUser(userId: String, reason: String? = null): CompletableDeferred<NoResult>(source)

Unbans a user from the guild.

Return

A CompletableDeferred that completes when the unban is created.

Parameters

userId

The id of the user.

reason

The reason for the unban.


open fun unbanUser(user: User, reason: String? = null): CompletableDeferred<NoResult>(source)

Unbans a user from the guild.

Return

A CompletableDeferred that completes when the unban is created.

Parameters

user

The user to unban.

reason

The reason for the unban.