Skip to content
Snippets Groups Projects
Commit 96dca287 authored by Reviath's avatar Reviath
Browse files

Update embed.go

parent 46e5e22e
Branches
No related tags found
No related merge requests found
......@@ -253,57 +253,3 @@ func (e *Embed) TruncateFooter() *Embed {
}
return e
}
func ImageEmbedWithDescription(embedDescription string, imageURL string) *discordgo.MessageEmbed {
imageEmbedWithDescription := NewEmbed().
SetDescription(embedDescription).
SetImage(imageURL).MessageEmbed
return imageEmbedWithDescription
}
func ImageEmbed(imageURL string) *discordgo.MessageEmbed {
imageEmbed := NewEmbed().
SetImage(imageURL).MessageEmbed
return imageEmbed
}
func ImageEmbedWithColor(imageURL string, Color int) *discordgo.MessageEmbed {
imageEmbed := NewEmbed().
SetImage(imageURL).
SetColor(Color).MessageEmbed
return imageEmbed
}
func ImageEmbedWithColorAndDescription(imageURL string, Color int, embedDescription string) *discordgo.MessageEmbed {
imageEmbed := NewEmbed().
SetImage(imageURL).
SetDescription(embedDescription).
SetColor(Color).MessageEmbed
return imageEmbed
}
func NormalEmbed(embedTitle string, embedDescription string, Color int, imageURL string, embedFooter string, embedFieldName string, embedFieldValue string) *discordgo.MessageEmbed {
normalEmbed := NewEmbed().
SetTitle(embedTitle).
SetDescription(embedDescription).
SetColor(Color).
SetImage(imageURL).
SetFooter(embedFooter).
AddField(embedFieldName, embedFieldValue).MessageEmbed
return normalEmbed
}
func DescriptionWithColorEmbed(embedDescription string, Color int) *discordgo.MessageEmbed {
descriptionWithColorEmbed := NewEmbed().
SetDescription(embedDescription).
SetColor(Color).MessageEmbed
return descriptionWithColorEmbed
}
func TitleWithDescriptionAndColorEmbed(embedDescription string, embedTitle string, Color int) *discordgo.MessageEmbed {
titleWithDescriptionAndColorEmbed := NewEmbed().
SetDescription(embedDescription).
SetTitle(embedTitle).
SetColor(Color).MessageEmbed
return titleWithDescriptionAndColorEmbed
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment