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

Properties

Name Value Summary
Error string
Error message on failure
ErrorCode int
Error code on failure
Ok bool
Indicating success or failure, Error for info on failure
TimeStamp string
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