5/9/2023 0 Comments Jockie music bot![]() Optional (These arguments are marked as nullDefault)Ĭontext variables are variables which have information about the command and its environment, these variables can be specified by having a annotation on the parameter.User, Member, TextChannel, VoiceChannel, Role and Emote from JDA.The ArgumentFactory has a few already registered classes.The CommandEvent is also optional, this means it does not have to be a parameter for the command to work, however most of the time you probably do want it. Any amount of CommandEvent used in your parameters won't matter they will always refer to the context and nothing else. There is one exception to this with CommandEvent which can not be used as an argument. Jockie Music includes every feature a Discord music bot could have, including the widest range of compatibility, support for both Spotify and Apple Music, the. ![]() Allowed parametersĪny objects are allowed to be present as the parameters however if the object's class is not registered in the ArgumentFactory it will not generate any default arguments for it and throw an exception therefore you have to specifiy them yourself. CommandImpl allows arguments to be specified as the parameters of a function named onCommand or on_command. of( packagePath) Command structureĪll commands need to extend ICommand and the standard implementation of that is CommandImpl. The JDA v3 version will continue to be updated until the crucial bugs are fixed and then JDA v4 will be moved to master and get versioned updates.Īlternatively if you want to use versions for JDA v4 you can use the commit hash of the version you want, for instance, 36df741642. For instance, it lets you play music from various platforms such as Spotify, YouTube, Apple Music, Soundcloud, and a lot more. It is among the best Discord music bots that still work for a variety of reasons. Use jda-v4-SNAPSHOT as the version if you are using JDA v4. It is now time to introduce you to Jockie Music. Org.json (Used for JSON arguments) Download Guava (Used for simplified adding of commands, adding commands by package) JDA (The Discord wrapper which the library is built upon) When version 2 comes out and the API base has taken shape there will be a proper versioning system with x.y.z versions and non-breaking changes. NOTE: This project does lack examples of all the available features.ĭISCLAIMER: This project is changing a lot from version to version, new breaking changes can be introduced in any version, this project jumped a bit too quickly on the 1.xx versions and the API is still taking shape. ![]() All suggestion and contributions are welcome!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |