Method ModifyIntegrationAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.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
integration
DiscordIntegrationIntegration to modify.
expireBehaviour
intNumber of days after which the integration expires.
expireGracePeriod
intLength of grace period which allows for renewing the integration.
enableEmoticons
boolWhether 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.