Method GetGatewayInfoAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetGatewayInfoAsync(string?, CancellationToken)
Gets the current gateway info for the provided token.
If no value is provided, the configuration value will be used instead.
public Task<GatewayInfo> GetGatewayInfoAsync(string? token = null, CancellationToken cancellationToken = default)
Parameters
tokenstringThe new token to use for the request.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<GatewayInfo>
A gateway info object.