remove unnecessary non-null assertion
All checks were successful
Build & Publish / build (push) Successful in 3m33s
All checks were successful
Build & Publish / build (push) Successful in 3m33s
This commit is contained in:
parent
18852917cb
commit
7f2641c7bb
@ -42,7 +42,7 @@ class Twitch : KordExKoinComponent {
|
||||
val replay = ReplayCollection().get(event.message) ?: return@launch
|
||||
channel.createMessage {
|
||||
content = "Replay redeemed by: ${event.user.name}"
|
||||
this.addFile("replay.osr", ChannelProvider(null) { ByteReadChannel(replay!!.replayFile) })
|
||||
this.addFile("replay.osr", ChannelProvider(null) { ByteReadChannel(replay.replayFile) })
|
||||
}
|
||||
// remove the replay from the database
|
||||
ReplayCollection().delete(event.message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user