ishangoyal13 / discordBot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration Guide

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

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: "<bot_auth_token>",
})

cl.SendDiscordMessage("<channel_id>", discordgo.MessageSend(newMsg))
Common colors RBG int value
yellow - 16776960
green  - 11403055
red    - 16711680

About

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


Languages

Language:Go 100.0%