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
- Host: GitHub
- URL: https://github.com/ishangoyal13/discordbot
- Owner: ishangoyal13
- Created: 2023-07-17T04:52:08.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-17T04:59:16.000Z (almost 3 years ago)
- Last Synced: 2025-02-06T08:16:08.282Z (over 1 year ago)
- Topics: back-end, bot, golang
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```