Java Discord API(JDA) ep. 3 - Commands

preview_player
Показать описание
This episode, we move onto commands. Commands will allow us to let the people in the discord server access the bot's functionality in different ways. I demonstrate this by showing you how to create a calculator command that can add and subtract numbers. All the links you will need are below. #IlluminatiProductions #JavaDiscordBot

Stay Updated!! 👁
More Videos coming soon.
Leave a comment for any future video suggestions.
Рекомендации по теме
Комментарии
Автор

Gonna test my brain here a bit...

I think the reason (message.length == 1) would always evaluate to false is because if you actually got to that if-else, it meant that the earlier evaluations did not throw a NullPointerException (index 1 exists), therefore... (message.length == 1) is always false if it gets to that point

bonjr
Автор

These are great please keep doing them, I'd like to learn how to assign roles by reactions, I can successfully get the ID of custom emojis but i seem to keep failing when it comes to default emojis

DoppsPkin
Автор

In calculate command i recommend use a switch instead of if/else

jordixaviermachoruiz
Автор

Great tutorial, that transition is jarring though.

Lambencee
Автор

so I am have 2 classes that extends ListenerAdapter and i added both of them into JDA . but only 1 works why so?

deryamilas
Автор

i cant use .queue() it keeps giving me an error that says
java: cannot access java.util.function.Consumer
class file for java.util.function.Consumer not found

cynical__
Автор

is there a possible way to check if num1 and num2 are numbers und not letters?
Thanks :)

Finn-duvx
Автор

The discord invite link expired, can you fix that?

snikkerrr
Автор

Thank you so much for these videos, they're super helpful. Could you show me how to read a message out in tts through the bot? Thanks

brunomila
Автор

The code is wrong tho, even if you put !whatever add it will still return
"This is the addition command"

DJZKOfficial