API reference
Method UpdateVerificationUrlAsync
- Namespace
- DisCatSharp.Hosting.AspNetCore.LinkedRoles
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
UpdateVerificationUrlAsync(BaseDiscordClient, Uri, CancellationToken)
Updates the current Discord application's linked-roles verification URL to the computed public URL.
public Task<DiscordApplication> UpdateVerificationUrlAsync(BaseDiscordClient client, Uri publicBaseUrl, CancellationToken cancellationToken = default)
Parameters
clientBaseDiscordClientThe Discord client used to update the application.
publicBaseUrlUriThe externally visible application base URL.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task<DiscordApplication>
The updated Discord application.
Remarks
Use this after deployment changes so the developer portal stays aligned with the URL published by GetVerificationUrl(Uri).
Exceptions
- ArgumentNullException
clientorpublicBaseUrlis null.