File tree Expand file tree Collapse file tree
src/main/kotlin/io/github/jakejmattson/embedbot/extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <img src="https://img.shields.io/badge/Kotlin-1.3.50-blue.svg" alt="Kotlin 1.3.50">
44 </a >
55 <a href =" https://gitlab.com/Aberrantfox/KUtils " >
6- <img src="https://img.shields.io/badge/KUtils-0.11.0 -blue.svg" alt="KUtils 0.11.0 ">
6+ <img src="https://img.shields.io/badge/KUtils-0.11.1 -blue.svg" alt="KUtils 0.11.1 ">
77 </a >
88 <a href =" https://GitHub.com/JakeJMattson/EmbedBot/releases/ " >
99 <img src="https://img.shields.io/github/release/JakeJMattson/EmbedBot.svg" alt="Release">
Original file line number Diff line number Diff line change 2121 <jvm .target>1.8</jvm .target>
2222 <kotlin .version>1.3.50</kotlin .version>
2323 <coroutines .version>1.3.1</coroutines .version>
24- <kutils .version>0.11.0 </kutils .version>
24+ <kutils .version>0.11.1 </kutils .version>
2525 <assembly .plugin.version>3.1.1</assembly .plugin.version>
2626 </properties >
2727
Original file line number Diff line number Diff line change @@ -8,17 +8,4 @@ fun Message.getEmbed() =
88 if (containsURL() || embeds.isEmpty())
99 null
1010 else
11- embeds.first()
12-
13- fun MessageEmbed.toEmbedBuilder () =
14- EmbedBuilder ().apply {
15- setTitle(title)
16- setDescription(description)
17- setFooter(footer?.text, footer?.iconUrl)
18- setThumbnail(thumbnail?.url)
19- setTimestamp(timestamp)
20- setImage(image?.url)
21- setColor(colorRaw)
22- setAuthor(author?.name)
23- fields.addAll(this @toEmbedBuilder.fields)
24- }
11+ embeds.first()
You can’t perform that action at this time.
0 commit comments