DiscordTeamMember

data class DiscordTeamMember(val membershipState: TeamMembershipState, val teamId: Snowflake, val user: DiscordUser, val role: TeamMemberRole)(source)

The raw developer team member data gotten from the API.

Constructors

Link copied to clipboard
constructor(membershipState: TeamMembershipState, teamId: Snowflake, user: DiscordUser, role: TeamMemberRole)

Properties

Link copied to clipboard
@SerialName(value = "membership_state")
val membershipState: TeamMembershipState

An integer enum representing the state of membership of this user. 1 means the user has been invited and 2 means the user has accepted the invitation.

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "team_id")
val teamId: Snowflake

The unique ID that this member belongs to.

Link copied to clipboard

Partial user data containing only the ID, username, discriminator and avatar.