InviteWithMeta class

Invite object with additional metadata

Inheritance

Properties

channel Channel
A mini channel object for the invite's channel.
read / write, final, late, inherited
client Nyxx
Reference to bot instance
final, inherited
code String
The invite's code.
read / write, final, late, inherited
createdAt DateTime
Date when invite was created
read / write, final, late
expiryDate DateTime
Date when invite will expire
read-only
guild Guild
A mini guild object for the invite's guild.
read / write, final, late, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
inviter User
User who created this invite
read / write, final, late, inherited
isValid bool
True if Invite is valid and can be used
read-only
maxAge int
Duration (in seconds) after which the invite expires
read / write, final, late
maxUses int
Max number of uses of this invite
read / write, final, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
targetUser User
The target user for this invite
read / write, final, late, inherited
temporary bool
Whether this invite only grants temporary membership
read / write, final, late
url String
Returns url to invite
read-only, inherited
uses int
Number of uses of this invite
read / write, final, late

Methods

delete({String auditReason}) Future<void>
Deletes this Invite.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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