An open API service indexing awesome lists of open source software.

https://github.com/ishangoyal13/discordbot

This project allows you to send messages in discord channels via bot
https://github.com/ishangoyal13/discordbot

back-end bot golang

Last synced: over 1 year ago
JSON representation

This project allows you to send messages in discord channels via bot

Awesome Lists containing this project

README

          

# Integration Guide

Following is the sample code of how to integrate the package into your service

```bash
newMsg := discord.MessageTemplate{
Content: "New Message",
Embeds: discord.MessageEmbeds{
{
Title: "testing msg",
Color: 16711680,
},
{
Title: "multiple msg",
Color: 16776960,
},
},
}

cl := discord.NewDiscordClient(logrus.New(), &discord.DiscordConfig{
AuthToken: "",
})

cl.SendDiscordMessage("", discordgo.MessageSend(newMsg))
```

##### Common colors RBG int value

```
yellow - 16776960
green - 11403055
red - 16711680
```