DiscordInvite class

Constructors

DiscordInvite({required String code, DiscordGuild? guild, DiscordChannel? channel, DiscordUser? inviter, int? targetType, DiscordUser? targetUser, DiscordApplication? targetApplication, required int? approximatePresenceCount, required int? approximateMemberCount, String? expiresAt, @Deprecated("") DiscordInviteStageInstance? stageInstance, DiscordGuildScheduledEvent? guildScheduledEvent})
DiscordInvite.fromJson(Map<String, dynamic> json)
factory

Properties

approximateMemberCount int?
approximate count of total members, returned from the GET /invites/<code> endpoint when with_counts is set to true
final
approximatePresenceCount int?
approximate count of online members, returned from the GET /invites/<code> endpoint when with_counts is set to true
final
channel DiscordChannel?
the channel this invite is for
final
code String
the invite code (unique ID)
final
expiresAt String?
the expiration date of this invite, returned from the GET /invites/<code> endpoint when with_expiration is set to true
final
expiresAtAsDateTime DateTime?
no setter
guild DiscordGuild?
the guild this invite is for
final
guildScheduledEvent DiscordGuildScheduledEvent?
guild scheduled event data, only included if guild_scheduled_event_id contains a valid guild scheduled event id
final
hashCode int
The hash code for this object.
no setterinherited
inviter DiscordUser?
the user who created this invite
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stageInstance DiscordInviteStageInstance?
stage instance data if there is a public Stage instance in the Stage channel this invite is for
final
targetApplication DiscordApplication?
the embedded application to open for this voice channel embedded application invite
final
targetType int?
the type of target for this voice channel invite
final
targetTypeAsEnum DiscordInviteTargetType?
no setter
targetUser DiscordUser?
the user whose stream to display for this voice channel stream invite
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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