Integration class
Integration structure
- These fields are not provided for discord bot integrations.
https://discord.com/developers/docs/resources/guild#integration-object-integration-structure
- Annotations
-
- @JsonSerializable(includeIfNull: false)
Constructors
- Integration({required String id, required String name, required IntegrationType type, required bool enabled, bool? syncing, String? roleId, bool? enableEmoticons, IntegrationExpireBehavior? expireBehavior, int? expireGracePeriod, User? user, required IntegrationAccount account, DateTime? syncedAt, int? subscriberCount, bool? revoked, IntegrationApplication? application})
- Constructor
-
Integration.fromJson(Map<
String, dynamic> json) -
From json
factory
Properties
- account → IntegrationAccount
-
integration account information
final
- application → IntegrationApplication?
-
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 → IntegrationExpireBehavior?
-
the behavior of expiring subscribers
final
- expireGracePeriod → int?
-
the grace period (in days) before expiring subscribers
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
integration id
final
- name → String
-
integration name
final
- revoked → bool?
-
has this integration been revoked
final
- roleId → String?
-
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 → DateTime?
-
when this integration was last synced
final
- syncing → bool?
-
is this integration syncing
final
- type → IntegrationType
-
integration type (twitch, youtube, or discord)
final
- user → User?
-
user for this integration
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - To json
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited