This is a simple JDA Bot Example
If you want to use slash commands you must activate application.commands on the Discord Developer Portal at your Bot and invite him again.
You must enable Intens on the Discord Developer Portal at your Bot.
Please replace the Bot Token to your Bot Token, the Prefix to your Prefix, the GuildID to your GuildID and the OwnerID to your ID
If you don't know how to become the GuildID and The PrefixID can u look at the pictures unter this text.
- Activate Developer Mode:
Go to Settings Then go to Advanced And Activate Developer Mode
- Copy your GuildID
Go to your Server and right click the name from the Server and click at "Copy ID"
- Copy your ID
Go to your Profile and right click it and click at "Copy ID"
I hope you enjoy it :)