Skip to content

Commit

Permalink
Fix boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Apr 10, 2024
1 parent 289adf1 commit 9c97142
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class StringDiscordOptionReference<T>(name: String, description: String, require

class BooleanDiscordOptionReference<T>(name: String, description: String, required: Boolean) : DiscordOptionReference<T>(name, description, required) {
override fun get(option: OptionMapping): T {
return option.asString as T
return option.asBoolean as T
}
}

Expand Down

0 comments on commit 9c97142

Please sign in to comment.