Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
// Discord Bot API Token。
Token string `json:"token" xml:"token" yaml:"token" env:"DISCORD_TOKEN"`
// Discord Channel ID。
ChannelId string `json:"channel_id" xml:"channel_id" yaml:"channel_id" env:"DISCORD_CHANNEL_ID"`
}
func (*Report) SendText ¶
SendText
https://discord.com/developers/docs/resources/message#create-message
func (*Report) WithEnvConfig ¶
Click to show internal directories.
Click to hide internal directories.