Invite class

Constructors

Invite(int _type, int _uses, bool _temporary, int _maxUses, int _maxAge, Snowflake? _inviterId, Snowflake? _targetUserId, Snowflake? _guildId, String? _expiresAt, String _createdAt, String _code, Snowflake? _channelId, int? _targetType)
Invite.from(Snowflake guildId, dynamic payload)
factory

Properties

channel GuildChannel?
Get channel GuildChannel of this
no setter
code String
Get code String of this
no setter
createdAt DateTime
Get created at DateTime of this
no setter
expiresAt DateTime?
Get expires at DateTime of this
no setter
guild Guild
Get guild Guild of this
no setter
hashCode int
The hash code for this object.
no setterinherited
isTemporary bool
Get if this is temporary bool of this
no setter
maxAge DateTime
Get max age DateTime of this
no setter
maxUses int
Get max uses int of this
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetType → InviteTargetType
Get target type InviteTargetType of this
no setter
type int
Get type int of this
no setter
url String
Get url String of this
no setter
uses int
Get uses int of this
no setter

Methods

delete({String? reason}) Future<void>
Delete this invite
getInviter() → WrappedInviter?
Get inviter WrappedInviter of this
getTargetUser() Future<User>?
Get target user User of this
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Get beautiful of this
override

Operators

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