GuildMember class

Represents a member of a Guild context.

Constructors

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

Properties

avatar ImageFormater?
Get the avatar of an Guild context.
no setter
guild Guild
Get the Guild of this.
no setter
hasGuildAvatar bool
This has an avatar.
no setter
hashCode int
The hash code for this object.
no setterinherited
id Snowflake
Get the guild id.
no setter
isBannable bool
Returns whether of this has a given can be banned
no setter
isBot bool
Returns whether of this is a bot
no setter
isManageable bool
Returns whether of this has a given is manageable]
no setter
isOwner bool
Returns weather of this is a Guild owner.
no setter
joinedAt DateTime
Get the DateTime of this joined at.
no setter
lang Locale
Get the Locale of this.
no setter
nickname String
Get the username of an Guild context.
no setter
pending bool
Get the pending status of this.
no setter
permissions → PermissionBitField
Get the permissions of this.
no setter
premiumSince DateTime?
Get the DateTime of this premium since.
no setter
presence ↔ GuildMemberPresence?
getter/setter pair
roles MemberRoleManager
Get the roles manager of this.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeoutDuration DateTime?
Get the DateTime timeout duration of this.
no setter
user User
Get the user of an Guild context.
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
Returns a clone of this
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
Returns a taggable String representation of this.
override

Operators

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