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
|
|
|
|
2016-12-08 20:05:23 +01:00
|
|
|
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
|
|
|
|
|
|
|
|
/**
|
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
|
|
|
|
* @param args Command args.
|
|
|
|
* @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
|
|
|
|
* @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
|
|
|
|
* @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
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
boolean isBotAdminCmd();
|
|
|
|
|
2018-02-28 17:59:09 +01:00
|
|
|
/**
|
|
|
|
* Determines if the command is only usable on NSFW channels
|
|
|
|
* @return boolean
|
|
|
|
*/
|
2018-02-27 15:17:00 +01:00
|
|
|
boolean isNSFW();
|
2016-12-08 20:05:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
}
|