Skip to content

Commit

Permalink
Stop using deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Jun 28, 2021
1 parent c30e1c0 commit d99d68b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class UserinfoCommand : Command() {
user.getStaticAvatarUrl() + "?size=256"
).async {
event.channel.sendFile(it, "stat.png")
.embed(embed.setThumbnail("attachment://stat.png").build())
.setEmbeds(embed.setThumbnail("attachment://stat.png").build())
.queue(null) {
sendEmbed(ctx, embed.setThumbnail(user.effectiveAvatarUrl), true)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object EvalFunctions {
.addField("Users", shardManager.userCache.size().toString(), true)
.addField("Channels", (shardManager.textChannelCache.size() + shardManager.privateChannelCache.size()).toString(), true)
.addField("Socket-Ping", shardManager.averageGatewayPing.toString(), false).build()
return channel.sendMessage(embed)
return channel.sendMessageEmbeds(embed)
}

@JvmStatic
Expand Down

0 comments on commit d99d68b

Please sign in to comment.