message

package
v0.0.0-...-d49a382 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeNonce

func DecodeNonce(dec *gojay.Decoder) (Nonce, error)

func NewAttachment

func NewAttachment() discord.MessageAttachment

func NewChannelMention

func NewChannelMention() discord.ChannelMention

func NewEmbed

func NewEmbed() discord.MessageEmbed

func NewIntNonce

func NewIntNonce(val int64) Nonce

NewIntNonce creates a new Nonce value containing the given integer.

func NewMessage

func NewMessage() Message

func NewNonce

func NewNonce() Nonce

NewNonce creates a new empty Nonce value.

Note: Nonce values created by this method are empty and will return false on calls to both IsString() and IsInteger().

func NewReaction

func NewReaction() discord.MessageReaction

func NewStringNonce

func NewStringNonce(val string) Nonce

NewStringNonce creates a new Nonce value containing the given string.

Types

type AttachmentSlice

type AttachmentSlice []discord.MessageAttachment

func (AttachmentSlice) IsNil

func (a AttachmentSlice) IsNil() bool

func (AttachmentSlice) MarshalJSONArray

func (a AttachmentSlice) MarshalJSONArray(enc *gojay.Encoder)

func (*AttachmentSlice) UnmarshalJSONArray

func (a *AttachmentSlice) UnmarshalJSONArray(dec *gojay.Decoder) error

type ChannelMentionSlice

type ChannelMentionSlice []discord.ChannelMention

func (ChannelMentionSlice) IsNil

func (c ChannelMentionSlice) IsNil() bool

func (ChannelMentionSlice) JSONSize

func (c ChannelMentionSlice) JSONSize() uint32

func (ChannelMentionSlice) MarshalJSONArray

func (c ChannelMentionSlice) MarshalJSONArray(enc *gojay.Encoder)

func (*ChannelMentionSlice) UnmarshalJSONArray

func (c *ChannelMentionSlice) UnmarshalJSONArray(dec *gojay.Decoder) error

type EmbedSlice

type EmbedSlice []discord.MessageEmbed

func (EmbedSlice) IsNil

func (e EmbedSlice) IsNil() bool

func (EmbedSlice) MarshalJSONArray

func (e EmbedSlice) MarshalJSONArray(enc *gojay.Encoder)

func (*EmbedSlice) UnmarshalJSONArray

func (e *EmbedSlice) UnmarshalJSONArray(dec *gojay.Decoder) error

type ReactionSlice

type ReactionSlice []discord.MessageReaction

func (ReactionSlice) IsNil

func (r ReactionSlice) IsNil() bool

func (ReactionSlice) MarshalJSONArray

func (r ReactionSlice) MarshalJSONArray(enc *gojay.Encoder)

func (*ReactionSlice) UnmarshalJSONArray

func (r *ReactionSlice) UnmarshalJSONArray(dec *gojay.Decoder) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL