Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Embed Util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reviath
Embed Util
Commits
96dca287
Commit
96dca287
authored
Mar 17, 2021
by
Reviath
Browse files
Options
Downloads
Patches
Plain Diff
Update embed.go
parent
46e5e22e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
embed.go
+0
-54
0 additions, 54 deletions
embed.go
with
0 additions
and
54 deletions
embed.go
+
0
−
54
View file @
96dca287
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment