case class GuildMember(userId: UserId, guildId: GuildId, nick: Option[String], avatar: Option[String], roleIds: Seq[RoleId], joinedAt: Option[OffsetDateTime], premiumSince: Option[OffsetDateTime], deaf: Boolean, mute: Boolean, pending: Option[Boolean], communicationDisabledUntil: Option[OffsetDateTime]) extends GetUser with GetGuild with Product with Serializable
Represents a user in a guild.
- userId
The user of this member.
- guildId
The guild this member belongs to.
- nick
The nickname of this user in this guild.
- roleIds
The roles of this user.
- joinedAt
When this user joined the guild.
- premiumSince
When this user boosted the server.
- deaf
If this user is deaf.
- mute
IF this user is mute.
- pending
True if the member hasn't gotten past the guild screening yet
- Source
- guild.scala
- Alphabetic
- By Inheritance
- GuildMember
- Serializable
- Product
- Equals
- GetGuild
- GetUser
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new GuildMember(userId: UserId, guildId: GuildId, nick: Option[String], avatar: Option[String], roleIds: Seq[RoleId], joinedAt: Option[OffsetDateTime], premiumSince: Option[OffsetDateTime], deaf: Boolean, mute: Boolean, pending: Option[Boolean], communicationDisabledUntil: Option[OffsetDateTime])
- userId
The user of this member.
- guildId
The guild this member belongs to.
- nick
The nickname of this user in this guild.
- roleIds
The roles of this user.
- joinedAt
When this user joined the guild.
- premiumSince
When this user boosted the server.
- deaf
If this user is deaf.
- mute
IF this user is mute.
- pending
True if the member hasn't gotten past the guild screening yet
Value Members
- val avatar: Option[String]
- def channelPermissionsId(guild: GatewayGuild, channelId: GuildChannelId): Permission
Calculate the permissions of this user in a channel given a guild.
- val communicationDisabledUntil: Option[OffsetDateTime]
- val deaf: Boolean
- def guild(implicit snapshot: CacheSnapshot): Option[GatewayGuild]
The guild for this object
The guild for this object
- Definition Classes
- GetGuild
- val guildId: GuildId
- Definition Classes
- GuildMember → GetGuild
- def hasRoleAboveId(guild: Guild, other: GuildMember): Boolean
Check if this user has any roles above the passed in roles.
- def hasRoleAboveId(guild: Guild, others: Seq[RoleId]): Boolean
Check if this user has any roles above the passed in roles.
- val joinedAt: Option[OffsetDateTime]
- val mute: Boolean
- val nick: Option[String]
- val pending: Option[Boolean]
- def permissions(guild: Guild): Permission
Calculate the permissions of this user
- def permissionsWithOverridesId(guild: GatewayGuild, guildPermissions: Permission, channelId: GuildChannelId): Permission
Calculate the permissions of this user in a channel.
- val premiumSince: Option[OffsetDateTime]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val roleIds: Seq[RoleId]
- def user(implicit snapshot: CacheSnapshot): Option[User]
The user for this object
The user for this object
- Definition Classes
- GetUser
- val userId: UserId
- Definition Classes
- GuildMember → GetUser