Class DiscordService
public class DiscordService : IDiscordService
- Inheritance
-
DiscordService
- Implements
- Inherited Members
Constructors
DiscordService(string)
The game owns the webhook. The engine stores none.
public DiscordService(string webhookUrl)
Parameters
webhookUrlstring
Methods
SendFeedback(string)
[RequiresUnreferencedCode("Posts an anonymous payload via System.Net.Http.Json reflection-based serialization.")]
public Task<bool> SendFeedback(string feedback)
Parameters
feedbackstring
Returns
SendFeedback(string, string?)
Posts feedback. A non-empty username
is the webhook username and Steam is not touched. A null username uses
the Steam persona, and a missing Steam client fails the send.
[RequiresUnreferencedCode("Posts an anonymous payload via System.Net.Http.Json reflection-based serialization.")]
public Task<bool> SendFeedback(string feedback, string? username)