Skip to main content
Corvus Connection

IDiscordApi

Interface
TheOmenDen.StreamPulse.Scripting.IDiscordApiPosts to the streamer's Discord server from a script handler, via the saved channel-webhook destinations configured in the desktop. Failure-safe: an unknown destination, an API error, a rate limit, a timeout, or an unexpected throw is caught, logged (with confidential data stripped — only the stable error code, never a URL or token), and reported as false. It never throws, so a failing post can never crash the host or escape a node. Mentions are suppressed by default (no accidental @everyone).

Members

2
  • SendEmbedAsync
    method
    Task<bool> SendEmbedAsync(string target, string title, string description = default, int? color = default, string url = default, CancellationToken cancellationToken = default)
    Posts a rich embed to the saved destination identified by target. color is a 0xRRGGBB integer. Returns true when Discord accepted the post.
  • SendMessageAsync
    method
    Task<bool> SendMessageAsync(string target, string message, CancellationToken cancellationToken = default)
    Posts message as plain text to the saved destination identified by target. Returns true when Discord accepted the post.