ChatInviteLink

interface ChatInviteLink : WithUser

Base interface for all chat invite links. See inheritors for more info or official docs

Types

Companion
Link copied to clipboard
object Companion

Properties

creator
Link copied to clipboard
abstract val creator: User
expirationDateTime
Link copied to clipboard
abstract val expirationDateTime: DateTime?
inviteLink
Link copied to clipboard
abstract val inviteLink: String
isPrimary
Link copied to clipboard
open val isPrimary: Boolean
isRevoked
Link copied to clipboard
abstract val isRevoked: Boolean
name
Link copied to clipboard
abstract val name: String?
user
Link copied to clipboard
open override val user: User

Inheritors

SecondaryChatInviteLink
Link copied to clipboard
PrimaryInviteLink
Link copied to clipboard

Extensions

asChatInviteLinkUnlimited
Link copied to clipboard
inline fun ChatInviteLink.asChatInviteLinkUnlimited(): ChatInviteLinkUnlimited?
asChatInviteLinkWithJoinRequest
Link copied to clipboard
asChatInviteLinkWithLimitedMembers
Link copied to clipboard
asPrimaryInviteLink
Link copied to clipboard
inline fun ChatInviteLink.asPrimaryInviteLink(): PrimaryInviteLink?
asSecondaryChatInviteLink
Link copied to clipboard
inline fun ChatInviteLink.asSecondaryChatInviteLink(): SecondaryChatInviteLink?
requireChatInviteLinkUnlimited
Link copied to clipboard
requireChatInviteLinkWithJoinRequest
Link copied to clipboard
requirePrimaryInviteLink
Link copied to clipboard
inline fun ChatInviteLink.requirePrimaryInviteLink(): PrimaryInviteLink
requireSecondaryChatInviteLink
Link copied to clipboard
whenChatInviteLinkUnlimited
Link copied to clipboard
inline fun <T> ChatInviteLink.whenChatInviteLinkUnlimited(block: (ChatInviteLinkUnlimited) -> T): T?
whenChatInviteLinkWithJoinRequest
Link copied to clipboard
inline fun <T> ChatInviteLink.whenChatInviteLinkWithJoinRequest(block: (ChatInviteLinkWithJoinRequest) -> T): T?
whenChatInviteLinkWithLimitedMembers
Link copied to clipboard
inline fun <T> ChatInviteLink.whenChatInviteLinkWithLimitedMembers(block: (ChatInviteLinkWithLimitedMembers) -> T): T?
whenPrimaryInviteLink
Link copied to clipboard
inline fun <T> ChatInviteLink.whenPrimaryInviteLink(block: (PrimaryInviteLink) -> T): T?
whenSecondaryChatInviteLink
Link copied to clipboard
inline fun <T> ChatInviteLink.whenSecondaryChatInviteLink(block: (SecondaryChatInviteLink) -> T): T?