K
Kord4mo ago
Ray

`Unresolved reference: int` when creating input command

I'm following the example in the very sparse wiki, but it doesn't seem to be valid anymore (it was last updated over 2 years ago). I get the error Unresolved reference: int, string seems to not show errors though. Any ideas on how to fix this? Or are there any more complex sample projects I could look at?
kord.createGuildChatInputCommand(
Snowflake(556525343595298817),
"sum",
"A slash command that sums two numbers"
) {
string("first_number", "The first operand") {
required = true
}
int("second_number", "The second operand") {
required = true
}
}
kord.createGuildChatInputCommand(
Snowflake(556525343595298817),
"sum",
"A slash command that sums two numbers"
) {
string("first_number", "The first operand") {
required = true
}
int("second_number", "The second operand") {
required = true
}
}
GitHub
Home
Idiomatic Kotlin Wrapper for The Discord API. Contribute to kordlib/kord development by creating an account on GitHub.
33 Replies
gdude
gdude4mo ago
I think it's number now, but use your IDE's autocomplete Eg by typing this. and seeing what you get Alternatively maybe you need to import the functions Again, your IDE can help with that
Ray
Ray4mo ago
Thanks, number worked. The IDE hinting wasn't that helpful :sweat:
No description
Tic
Tic4mo ago
integer function exists
Ray
Ray4mo ago
:PatrickThink: Oh it's the full word
LustigerLurch
LustigerLurch4mo ago
it was renamed to integer, the wiki isn't really up to date :pained_smile:
Tic
Tic4mo ago
Yes I would like to update it .. but we don't have the possibility to do that
matytyma
matytyma4mo ago
yeah...
Tic
Tic4mo ago
Is there a way to .. authorize people to modify the wiki and create PR (I think there is no PR on wiki but maybe)
matytyma
matytyma4mo ago
You can't even set like access roles? Poor GitHub
No description
gdude
gdude4mo ago
That's an Enterprise feature I've been thinking about moving off of GH someday for a bunch of reasons, and that's one of them
Tic
Tic4mo ago
And gitbook is not free?
gdude
gdude4mo ago
use writerside, or mkdocs with material for mkdocs
Tic
Tic4mo ago
Never tried but why not if it's readable directly on github for the user
gdude
gdude4mo ago
you'd publish it to a site anyway
matytyma
matytyma4mo ago
we've got GH pages, so... we could even go with pure Markdown
Want results from more Discord servers?
Add your server