Member class Null safety

Inheritance
Implemented types

Properties

avatarHash String?
Member's avatar in Guild
late, final
boostingSince DateTime?
When the user starting boosting the guild
read / write
client INyxx
Reference to client
final
createdAt DateTime
Gets creation timestamp included in Snowflake
read-only, inherited
deaf bool
Weather or not the member is deafened.
late, final
effectivePermissions Future<Permissions>
Returns total permissions of user.
read-only
guild Cacheable<Snowflake, Guild>
Cacheable of guild where member is located
late, final
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
late, final
id Snowflake
ID of entity as Snowflake
final, inherited
joinedAt DateTime
When the member joined the guild.
late, final
mention String
The channel's mention string.
read-only, override
mute bool
Weather or not the member is muted.
late, final
nickname String?
The members nickname, null if not set.
read / write
pending bool?
Whether the user has not yet passed the guild's Membership Screening requirements
late, final
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
late, final
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. [...]
avatarURL({String format = "webp"}) String?
Returns url to member avatar
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, Snowflake? channel = const Snowflake.zero(), 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