multiple discord senders
This commit is contained in:
13
lib/message.go
Normal file
13
lib/message.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user