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 Presence? presence})
Properties
- accentColor → int?
-
final
- assets → MemberAssets
-
final
- discriminator → String
-
final
- flags → MemberFlagsManager
-
final
- globalName → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- presence ↔ Presence?
-
getter/setter pair
- publicFlags → int?
-
final
- roles → MemberRoleManager
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- server ↔ Server
-
latefinal
- timeout → MemberTimeout
-
final
- username → String
-
final
- voice ↔ MemberVoice
-
latefinal
Methods
-
ban(
{Duration? deleteSince, String? reason}) → Future< void> - Ban the member.
-
canByPassVerification(
) → bool - Check if the member can bypass verification.
-
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.
-
hasCompletedOnboarding(
) → bool - Check if the member has completed onboarding.
-
hasRejoined(
) → bool - Check if the member has already rejoined the server.
-
hasStartedOnboarding(
) → bool - Check if the member has started onboarding.
-
kick(
{String? reason}) → Future< void> - Kick the member.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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