2019-10-20 14:11:54 +01:00

19 lines
345 B
Go

package channel
import (
"fmt"
"github.com/TicketsBot/GoPanel/utils/discord"
)
type CreateMessageBody struct {
Content string `json:"content"`
}
func CreateMessage(id int) discord.Endpoint {
return discord.Endpoint{
RequestType: discord.POST,
AuthorizationType: discord.BOT,
Endpoint: fmt.Sprintf("/channels/%d/messages", id),
}
}