|
@@ -2,30 +2,56 @@ using System; |
|
|
|
|
|
|
|
|
namespace Discord |
|
|
namespace Discord |
|
|
{ |
|
|
{ |
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Holds information for a guild integration feature. |
|
|
|
|
|
/// </summary> |
|
|
public interface IGuildIntegration |
|
|
public interface IGuildIntegration |
|
|
{ |
|
|
{ |
|
|
/// <summary> Gets the integration ID. </summary> |
|
|
|
|
|
/// <returns> An <see cref="ulong"/> representing the unique identifier value of this integration. </returns> |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Gets the integration ID. |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
/// <returns> |
|
|
|
|
|
/// An <see cref="UInt64"/> representing the unique identifier value of this integration. |
|
|
|
|
|
/// </returns> |
|
|
ulong Id { get; } |
|
|
ulong Id { get; } |
|
|
/// <summary> Gets the integration name. </summary> |
|
|
|
|
|
/// <returns> A string containing the name of this integration. </returns> |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Gets the integration name. |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
/// <returns> |
|
|
|
|
|
/// A string containing the name of this integration. |
|
|
|
|
|
/// </returns> |
|
|
string Name { get; } |
|
|
string Name { get; } |
|
|
/// <summary> Gets the integration type (twitch, youtube, etc). </summary> |
|
|
|
|
|
/// <returns> A string containing the name of the type of integration. </returns> |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Gets the integration type (Twitch, YouTube, etc). |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
/// <returns> |
|
|
|
|
|
/// A string containing the name of the type of integration. |
|
|
|
|
|
/// </returns> |
|
|
string Type { get; } |
|
|
string Type { get; } |
|
|
/// <summary> Gets if this integration is enabled or not. </summary> |
|
|
|
|
|
/// <summary> A value indicating if this integration is enabled. </returns> |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Gets a value that indicates whether this integration is enabled or not. |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
/// <returns> |
|
|
|
|
|
/// <c>true</c> if this integration is enabled; otherwise <c>false</c>. |
|
|
|
|
|
/// </returns> |
|
|
bool IsEnabled { get; } |
|
|
bool IsEnabled { get; } |
|
|
/// <summary> Gets if this integration is syncing or not. </summary> |
|
|
|
|
|
/// <returns> A value indicating if this integration is syncing. </returns> |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Gets a value that indicates whether this integration is syncing or not. |
|
|
|
|
|
/// </summary> |
|
|
/// <remarks> |
|
|
/// <remarks> |
|
|
/// An integration with syncing enabled will update its "subscribers" on |
|
|
|
|
|
/// an interval, while one with syncing disabled will not. |
|
|
|
|
|
/// A user must manually choose when sync the integration |
|
|
|
|
|
/// if syncing is disabled. |
|
|
|
|
|
|
|
|
/// An integration with syncing enabled will update its "subscribers" on an interval, while one with syncing |
|
|
|
|
|
/// disabled will not. A user must manually choose when sync the integration if syncing is disabled. |
|
|
/// </remarks> |
|
|
/// </remarks> |
|
|
|
|
|
/// <returns> |
|
|
|
|
|
/// <c>true</c> if this integration is syncing; otherwise <c>false</c>. |
|
|
|
|
|
/// </returns> |
|
|
bool IsSyncing { get; } |
|
|
bool IsSyncing { get; } |
|
|
/// <summary> Gets the ID that this integration uses for "subscribers". </summary> |
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
/// Gets the ID that this integration uses for "subscribers". |
|
|
|
|
|
/// </summary> |
|
|
|
|
|
/// <returns> |
|
|
|
|
|
/// A |
|
|
|
|
|
/// </returns> |
|
|
ulong ExpireBehavior { get; } |
|
|
ulong ExpireBehavior { get; } |
|
|
/// <summary> Gets the grace period before expiring "subscribers". </summary> |
|
|
/// <summary> Gets the grace period before expiring "subscribers". </summary> |
|
|
ulong ExpireGracePeriod { get; } |
|
|
ulong ExpireGracePeriod { get; } |
|
|