Table of Contents
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

client BaseDiscordClient

The Discord client used to update the application.

publicBaseUrl Uri

The externally visible application base URL.

cancellationToken CancellationToken

A 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

client or publicBaseUrl is null.