BanMember

class BanMember(val member: Member, val label: String, val onAction: () -> Unit) : MemberAction

Ban the member from the channel.

Constructors

Link copied to clipboard
constructor(member: Member, label: String, onAction: () -> Unit)

Properties

Link copied to clipboard
open override val icon: Int

Drawable resource for the action icon.

Link copied to clipboard
open override val isDestructive: Boolean = true

Whether this action is destructive (e.g. ban, remove).

Link copied to clipboard
open override val label: String

Human-readable label for the action.

Link copied to clipboard
open override val member: Member

The member this action targets.

Link copied to clipboard
open override val onAction: () -> Unit

The handler to execute when the action is confirmed.