DiscordIntegration class
Constructors
- DiscordIntegration({required DiscordSnowflake id, required String name, required String type, bool? enabled, bool? syncing, DiscordSnowflake? roleId, bool? enableEmoticons, int? expireBehavior, int? expireGracePeriod, DiscordUser? user, required DiscordIntegrationAccount account, String? syncedAt, int? subscriberCount, bool? revoked, DiscordIntegrationApplication? application})
-
DiscordIntegration.fromJson(Map<
String, dynamic> json) -
factory
Properties
- account → DiscordIntegrationAccount
-
integration account information
final
- application → DiscordIntegrationApplication?
-
The bot/OAuth2 application for discord integrations
final
- enabled → bool?
-
is this integration enabled
final
- enableEmoticons → bool?
-
whether emoticons should be synced for this integration
(twitch only currently)
final
- expireBehavior → int?
-
the behavior of expiring subscribers
integration expire behavior
final
- expireBehaviorAsEnum → DiscordIntegrationExpirationBehavior?
-
no setter
- expireGracePeriod → int?
-
the grace period (in days) before expiring subscribers
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → DiscordSnowflake
-
integration id
final
- name → String
-
integration name
final
- revoked → bool?
-
has this integration been revoked
final
- roleId → DiscordSnowflake?
-
id that this integration uses for "subscribers"
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscriberCount → int?
-
how many subscribers this integration has
final
- syncedAt → String?
-
when this integration was last synced
as an ISO 8601 string
final
- syncedAtAsDateTime → DateTime?
-
no setter
- syncing → bool?
-
is this integration syncing
final
- type → String
-
integration type
valid types are
youtube
,twitch
, ordiscord
.final - user → DiscordUser?
-
user for this integration
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
- accountEntry → const String
- applicationEntry → const String
- enabledEntry → const String
- enableEmoticonsEntry → const String
- expireBehaviorEntry → const String
- expireGracePeriodEntry → const String
- idEntry → const String
- nameEntry → const String
- revokedEntry → const String
- roleIdEntry → const String
- subscriberCountEntry → const String
- syncedAtEntry → const String
- syncingEntry → const String
- typeEntry → const String
- userEntry → const String