14 lines
188 B
Go
14 lines
188 B
Go
package lib
|
|
|
|
import "fmt"
|
|
|
|
type Message struct {
|
|
Channel string
|
|
Title string
|
|
URL string
|
|
}
|
|
|
|
func (m Message) ToDiscord() string {
|
|
return fmt.Sprintf("[%s](%s)", m.Title, m.URL)
|
|
}
|