Interface IDiscordInteractionAuthService
The service that verifies all interaction request.
Namespace: Color_Chan.Discord.Commands.Services
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public interface IDiscordInteractionAuthService
Methods
| Improve this Doc View SourceVerifySignature(String, String, String)
Verifies an interaction request.
Declaration
bool VerifySignature(string signature, string timestamp, string rawBody)
Parameters
Type | Name | Description |
---|---|---|
System.String | signature | The signature send with the request. |
System.String | timestamp | The signature time stamp send with the request. |
System.String | rawBody | The body of the request. |
Returns
Type | Description |
---|---|
System.Boolean | Whether or not the request has been successfully verified. |
VerifySignatureAsync(String, String, Stream)
Verifies an interaction request asynchronously.
Declaration
Task<bool> VerifySignatureAsync(string signature, string timestamp, Stream rawBody)
Parameters
Type | Name | Description |
---|---|---|
System.String | signature | The signature send with the request. |
System.String | timestamp | The signature time stamp send with the request. |
System.IO.Stream | rawBody | The body System.IO.Stream of the request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | Whether or not the request has been successfully verified. |