Table of Contents

Class DiscordService

Namespace
PopcorningGuineaPig.Engine.Services
Assembly
PopcorningGuineaPig.Engine.dll
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

webhookUrl string

Methods

SendFeedback(string)

[RequiresUnreferencedCode("Posts an anonymous payload via System.Net.Http.Json reflection-based serialization.")]
public Task<bool> SendFeedback(string feedback)

Parameters

feedback string

Returns

Task<bool>

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)

Parameters

feedback string
username string

Returns

Task<bool>