Member class final
Constructors
- Member({required Snowflake id, required String username, required String? nickname, required String? globalName, required String discriminator, required MemberAssets assets, required MemberFlagsManager flags, required int? publicFlags, required MemberRoleManager roles, required bool isBot, required bool isPending, required MemberTimeout timeout, required bool mfaEnabled, required String? locale, required DateTime? joinedAt, required Permissions permissions, required int? accentColor, required Snowflake serverId})
Properties
- accentColor → int?
-
final
- assets → MemberAssets
-
final
- canByPassVerification → bool
-
Check if the member can bypass verification.
no setter
- discriminator → String
-
final
- flags → MemberFlagsManager
-
final
- globalName → String?
-
final
- hasCompletedOnboarding → bool
-
Check if the member has completed onboarding.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRejoined → bool
-
Check if the member has already rejoined the server.
no setter
- hasStartedOnboarding → bool
-
Check if the member has started onboarding.
no setter
- id → Snowflake
-
final
- isBot → bool
-
final
- isPending → bool
-
final
- joinedAt → DateTime?
-
final
- locale → String?
-
final
- mfaEnabled → bool
-
final
- nickname → String?
-
final
- permissions → Permissions
-
final
-
final
-
final
- publicFlags → int?
-
final
- roles → MemberRoleManager
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverId → Snowflake
-
final
- timeout → MemberTimeout
-
final
- username → String
-
final
Methods
-
ban(
{Duration? deleteSince, String? reason}) → Future< void> - Ban the member.
-
disableMfa(
{String? reason}) → Future< void> - Disable the member's MFA.
-
edit(
MemberBuilder builder, {String? reason}) → Future< void> - Edit the member.
-
enableMfa(
{String? reason}) → Future< void> - Enable the member's MFA. This member will be required to verify their account for accessing the server.
-
exclude(
{Duration? duration, String? reason}) → Future< void> - Exclude the member.
-
kick(
{String? reason}) → Future< void> - Kick the member.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolvePresence(
) → Future< Presence> - Get the Presence of the member.
-
resolveServer(
) → Future< Server> - Get related Server
-
resolveVoiceContext(
{bool force = false}) → Future< MemberVoiceManager> -
Get the
VoiceState
of the member insideMemberVoiceManager
. -
setNickname(
String value, String? reason) → Future< void> - Change the member's nickname.
-
setUsername(
String value, String? reason) → Future< void> - Change the member's username.
-
toggleMfa(
{String? reason}) → Future< void> - Toggle the member's MFA.
-
toString(
) → String -
A string representation of this object.
inherited
-
unExclude(
{String? reason}) → Future< void> - Unexclude the member.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited