Method ModifyIntegrationAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
ModifyIntegrationAsync(DiscordIntegration, int, int, bool)
Modifies an integration in this guild.
public Task<DiscordIntegration> ModifyIntegrationAsync(DiscordIntegration integration, int expireBehaviour, int expireGracePeriod, bool enableEmoticons)
Parameters
integrationDiscordIntegrationIntegration to modify.
expireBehaviourintNumber of days after which the integration expires.
expireGracePeriodintLength of grace period which allows for renewing the integration.
enableEmoticonsboolWhether emotes should be synced from this integration.
Returns
- Task<DiscordIntegration>
The modified integration.
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageGuild permission.
- NotFoundException
Thrown when the guild does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.
ModifyIntegrationAsync(ulong, int, int, bool)
Modifies an integration in this guild.
public Task<DiscordIntegration> ModifyIntegrationAsync(ulong integrationId, int expireBehaviour, int expireGracePeriod, bool enableEmoticons)
Parameters
integrationIdulongThe id of the Integration to modify.
expireBehaviourintNumber of days after which the integration expires.
expireGracePeriodintLength of grace period which allows for renewing the integration.
enableEmoticonsboolWhether emotes should be synced from this integration.
Returns
- Task<DiscordIntegration>
The modified integration.
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageGuild permission.
- NotFoundException
Thrown when the guild does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.