2017-03-20 18:44:53 +01:00
|
|
|
package net.Broken;
|
2016-12-08 20:05:23 +01:00
|
|
|
|
2017-02-08 23:53:50 +01:00
|
|
|
|
2019-09-10 09:03:16 +02:00
|
|
|
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
2016-12-08 20:05:23 +01:00
|
|
|
|
|
|
|
/**
|
2018-02-28 17:59:09 +01:00
|
|
|
* Interface that define command structure.
|
2016-12-08 20:05:23 +01:00
|
|
|
*/
|
|
|
|
public interface Commande {
|
2018-02-28 17:59:09 +01:00
|
|
|
/**
|
|
|
|
* Main action of command
|
2022-05-15 16:54:34 +02:00
|
|
|
*
|
|
|
|
* @param args Command args.
|
2018-02-28 17:59:09 +01:00
|
|
|
* @param event Command MessageReceivedEvent
|
|
|
|
*/
|
2016-12-08 20:05:23 +01:00
|
|
|
void action(String[] args, MessageReceivedEvent event);
|
2018-02-28 17:59:09 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Determines if the command is usable whit private message
|
2022-05-15 16:54:34 +02:00
|
|
|
*
|
2018-02-28 17:59:09 +01:00
|
|
|
* @return boolean
|
|
|
|
*/
|
2017-09-05 02:13:27 +02:00
|
|
|
boolean isPrivateUsable();
|
2018-02-28 17:59:09 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Determines if the command is usable only by admin user
|
2022-05-15 16:54:34 +02:00
|
|
|
*
|
2018-02-28 17:59:09 +01:00
|
|
|
* @return boolean
|
|
|
|
*/
|
2018-02-23 19:17:23 +01:00
|
|
|
boolean isAdminCmd();
|
2018-02-28 17:59:09 +01:00
|
|
|
|
2019-06-16 19:27:16 +02:00
|
|
|
/**
|
|
|
|
* Determines if the command is usable only by bot level admin user
|
2022-05-15 16:54:34 +02:00
|
|
|
*
|
2019-06-16 19:27:16 +02:00
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
boolean isBotAdminCmd();
|
|
|
|
|
2018-02-28 17:59:09 +01:00
|
|
|
/**
|
|
|
|
* Determines if the command is only usable on NSFW channels
|
2022-05-15 16:54:34 +02:00
|
|
|
*
|
2018-02-28 17:59:09 +01:00
|
|
|
* @return boolean
|
|
|
|
*/
|
2018-02-27 15:17:00 +01:00
|
|
|
boolean isNSFW();
|
2016-12-08 20:05:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
}
|