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 whenwith_counts
is set totrue
final - approximatePresenceCount → int?
-
approximate count of online members, returned from the
GET /invites/<code>
endpoint whenwith_counts
is set totrue
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 whenwith_expiration
is set totrue
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 idfinal - 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
Constants
- approximateMemberCountEntry → const String
- approximatePresenceCountEntry → const String
- channelEntry → const String
- codeEntry → const String
- expiresAtEntry → const String
- guildEntry → const String
- guildScheduledEventEntry → const String
- inviterEntry → const String
- stageInstanceEntry → const String
- targetApplicationEntry → const String
- targetTypeEntry → const String
- targetUserEntry → const String