GuildMember class

Constructors

GuildMember(User _user, String? _nickname, ImageFormater? _avatar, DateTime _joinedAt, DateTime? _premiumSince, String? _permissions, bool _pending, DateTime? _timeoutDuration, MemberRoleManager _roles, VoiceManager voice, Guild _guild)
GuildMember.from({required dynamic user, required GuildRoleManager roles, required Guild guild, dynamic member, required VoiceManager voice})
factory

Properties

avatar ImageFormater?
no setter
guild Guild
no setter
hasGuildAvatar bool
no setter
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
no setter
isBot bool
Returns whether of this is a bot
no setter
joinedAt DateTime
no setter
lang Locale
no setter
nickname String
no setter
pending bool
no setter
permissions String?
no setter
premiumSince DateTime?
no setter
roles MemberRoleManager
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeoutDuration DateTime?
no setter
user User
no setter
voice VoiceManager
getter/setter pair

Methods

ban({int? count, String? reason}) Future<void>
banned this from the Guild and deleted its messages for a given period
clone() GuildMember
isPending() bool
Returns whether of this is pending
kick({int? count, String? reason}) Future<void>
Kick this of Guild
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeTimeout() Future<void>
Cancels the exclusion of this
setUsername(String name) Future<void>
Update the username of this
timeout(DateTime expiration) Future<void>
Excludes this for a pre-defined period
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited