Member class Null safety

Inheritance

Properties

boostingSince DateTime?
When the user starting boosting the guild
read / write
client Nyxx
Reference to client
final
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
deaf bool
Weather or not the member is deafened.
read / write, final, late
effectivePermissions Future<Permissions>
Returns total permissions of user.
read-only
guild Cacheable<Snowflake, Guild>
Cacheable of guild where member is located
read / write, final, late
hashCode int
The hash code for this object. [...]
read-only, inherited
highestRole Role
Returns highest role of member. Uses ! on nullable properties and will throw if anything is missing from cache
read-only
hoistedRole Cacheable<Snowflake, Role>
Highest role of member
read / write
id Snowflake
ID of entity as Snowflake
final, inherited
joinedAt DateTime
When the member joined the guild.
read / write, final, late
mute bool
Weather or not the member is muted.
read / write, final, late
nickname String?
The members nickname, null if not set.
read / write
roles Iterable<Cacheable<Snowflake, Role>>
Roles of member
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
user Cacheable<Snowflake, User>
Cacheable for this Guild member
read / write, final, late
voiceState VoiceState?
Voice state of member. Null if not connected to channel or voice state not cached
read-only

Methods

addRole(SnowflakeEntity role, {String? auditReason}) Future<void>
Adds role to user. [...]
ban({int? deleteMessageDays, String? reason, String? auditReason}) Future<void>
Bans the member and optionally deletes deleteMessageDays days worth of messages.
edit({String? nick, List<SnowflakeEntity>? roles, bool? mute, bool? deaf, SnowflakeEntity? channel, String? auditReason}) Future<void>
Edits members. Allows to move user in voice channel, mute or deaf, change nick, roles.
kick({String? auditReason}) Future<void>
Kicks the member from guild
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeRole(SnowflakeEntity role, {String? auditReason}) Future<void>
Removes role from user.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited