Skip to content

ishangoyal13/discordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages