Documentation ¶
Index ¶
- func DecodeNonce(dec *gojay.Decoder) (Nonce, error)
- func NewAttachment() discord.MessageAttachment
- func NewChannelMention() discord.ChannelMention
- func NewEmbed() discord.MessageEmbed
- func NewIntNonce(val int64) Nonce
- func NewMessage() Message
- func NewNonce() Nonce
- func NewReaction() discord.MessageReaction
- func NewStringNonce(val string) Nonce
- type AttachmentSlice
- type ChannelMentionSlice
- type EmbedSlice
- type ReactionSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeNonce ¶
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
Click to show internal directories.
Click to hide internal directories.