Class RestGuildIntegration
Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestGuildIntegration : RestEntity<ulong>, IEntity<ulong>, IGuildIntegration
Properties​
Name​
Gets the integration name.
View Source​
Declaration
public string Name { get; }
Type​
Gets the integration type (Twitch, YouTube, etc).
View Source​
Declaration
public string Type { get; }
IsEnabled​
Gets a value that indicates whether this integration is enabled or not.
View Source​
Declaration
public bool IsEnabled { get; }
IsSyncing​
Gets a value that indicates whether this integration is syncing or not.
View Source​
Declaration
public bool IsSyncing { get; }
ExpireBehavior​
Gets the ID that this integration uses for "subscribers".
View Source​
Declaration
public ulong ExpireBehavior { get; }
ExpireGracePeriod​
Gets the grace period before expiring "subscribers".
View Source​
Declaration
public ulong ExpireGracePeriod { get; }
GuildId​
View Source​
Declaration
public ulong GuildId { get; }
RoleId​
View Source​
Declaration
public ulong RoleId { get; }
User​
View Source​
Declaration
public RestUser User { get; }
Account​
Gets integration account information.
View Source​
Declaration
public IntegrationAccount Account { get; }
SyncedAt​
Gets when this integration was last synced.
View Source​
Declaration
public DateTimeOffset SyncedAt { get; }
IGuildIntegration.Guild​
View Source​
Declaration
IGuild IGuildIntegration.Guild { get; }
IGuildIntegration.User​
View Source​
Declaration
IUser IGuildIntegration.User { get; }
Methods​
DeleteAsync()​
View Source​
Declaration
public async Task DeleteAsync()
Returns​
System.Threading.Tasks.Task
ModifyAsync(Action<GuildIntegrationProperties>)​
View Source​
Declaration
public async Task ModifyAsync(Action<GuildIntegrationProperties> func)
Returns​
System.Threading.Tasks.Task
Parameters​
Type | Name |
---|---|
System.Action<Discord.GuildIntegrationProperties> | func |
SyncAsync()​
View Source​
Declaration
public async Task SyncAsync()
Returns​
System.Threading.Tasks.Task
ToString()​
View Source​
Declaration
public override string ToString()
Returns​
System.String