DiscordChatMessageResult Class

Summary

The result of DiscordProvider Chat API post.
Assembly
Cake.Discord.dll
Namespace
Cake.Discord.Chat
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["DiscordChatMessageResult"] class Type type-node

Syntax

public sealed class DiscordChatMessageResult

Attributes

Type Description
CakeAliasCategoryAttribute

Constructors

Name Summary
DiscordChatMessageResult(bool, string, int, string) Initializes a new instance of the DiscordChatMessageResult class.

Properties

Name Value Summary
Error string
Gets the error message on failure.
ErrorCode int
Gets the error code on failure.
Ok bool
Gets a value indicating whether the result is a success or failure, Error for info on failure.
TimeStamp string
Gets the timestamp of the message.

Methods

Name Value Summary
ToString() string
Converts this instance of value to a string representation.

Extension Methods

Name Value Summary
Dump<DiscordChatMessageResult>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<DiscordChatMessageResult>(DiscordChatMessageResult[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<DiscordChatMessageResult>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<DiscordChatMessageResult>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<DiscordChatMessageResult>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<DiscordChatMessageResult>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin