Skip to content

Commit 90b9f38

Browse files
committed
Upgrade to KUtils 0.11.1
1 parent becd3bc commit 90b9f38

3 files changed

Lines changed: 3 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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">

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
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

src/main/kotlin/io/github/jakejmattson/embedbot/extensions/Message.kt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)