discord

package
v0.0.0-...-528edf3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(authType string, authID string, chanID string)

Init discord api base conf

func ReactMsg

func ReactMsg(msgID string, emoji string)

func RemoveReactMsg

func RemoveReactMsg(msgID string, emoji string)

Types

type Embeds

type Embeds struct {
	Type     string `json:"type"`
	URL      string `json:"url"`
	Provider struct {
		Name string `json:"name"`
	} `json:"provider"`
}

type MessageApi

type MessageApi []struct {
	ID        string      `json:"id"`
	Content   string      `json:"content"`
	Embeds    []Embeds    `json:"embeds,omitempty"`
	Reactions []Reactions `json:"reactions,omitempty"`
}

func Messages

func Messages(lastID string) MessageApi

Messages get last messages group

type Reactions

type Reactions struct {
	Me bool `json:"me"`
}

Jump to

Keyboard shortcuts

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