GuildMember class
Guild Member structure
https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-structure
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
-
GuildMember({User? user, String? nick, String? avatar, required List<
String> roles, required DateTime joinedAt, bool? deaf, bool? mute, bool? pending, List<Permission> ? permissions}) - Constructor
-
GuildMember.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- avatar → String?
-
the member's guild avatar hash
final
- deaf → bool?
-
whether the user is deafened in voice channels
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- joinedAt → DateTime
-
when the user joined the guild
final
- mute → bool?
-
whether the user is muted in voice channels
final
- nick → String?
-
this users guild nickname
final
- pending → bool?
-
whether the user has not yet passed the guild's Membership Screening requirements
final
-
permissions
→ List<
Permission> ? -
total permissions of the member in the channel, including overwrites,
returned when in the interaction object
final
-
when the user started boosting the guild
final
-
roles
→ List<
String> -
array of role object ids
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user → User?
-
the user this guild member represents
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited