n;script
command is operated.
There are 4 subcommands, show, add, edit, delete
.
n;script show [id]
: Checks the amount of script slots you have available (as of yet, the limit is 3!) Or, returns the contents of a script by its id.
n;script add <script>
: Adds a new script, if there is space.
n;script edit <id> <script>
: Edits an existing script, by id.
n;script delete <id>
: Deletes an existing script, by id.message
is the message that was sent. It is implemented in Java as a SafeMessage object, which is a wrapper around a standard message. It has the following methods:591735345406672935
. As documented earlier, getGuild()
returns the guild for the message, which allows you to then make your own. The channel 591735345406672935
could be an audit log channel. A new method has been introduced here, called id
. This method creates a Snowflake object so that you can get channels and the like.