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
common
object Companion

Properties

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

Inheritors

SecondaryChatInviteLink
Link copied to clipboard
PrimaryInviteLink
Link copied to clipboard

Extensions

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