Skip to content

Commit

Permalink
Do create member when member present
Browse files Browse the repository at this point in the history
  • Loading branch information
BartArys committed Dec 3, 2020
1 parent 3cc0c0d commit 9cbc510
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal class MessageEventHandler(
} else null

//get the member and cache the member. We need the user, guild id and member to be present
val member = if (userData != null && guildId is OptionalSnowflake.Value && member !is Optional.Value) {
val member = if (userData != null && guildId is OptionalSnowflake.Value && member is Optional.Value) {
val memberData = MemberData.from(author.id, guildId.value!!, member.value!!)
cache.put(memberData)
Member(memberData, userData, kord)
Expand Down

0 comments on commit 9cbc510

Please sign in to comment.