Invite class final

Constructors

Invite({required InviteType type, required String code, required Duration maxAge, required int maxUses, required Snowflake inviterId, required bool isTemporary, required DateTime createdAt, Snowflake? serverId, Snowflake? channelId, DateTime? expiresAt})

Properties

channelId Snowflake?
final
code String
final
createdAt DateTime
final
expiresAt DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
inviterId Snowflake
final
isTemporary bool
final
maxAge Duration
final
maxUses int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverId Snowflake?
final
type InviteType
final

Methods

delete({String? reason}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveChannel<T extends Channel>() Future<T?>
resolveInviter() Future<User?>
resolveMetadata({bool force = false}) Future<InviteMetadata?>
toString() String
A string representation of this object.
inherited

Operators

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