added mostly complete support for dual commands
basically writing one command for both dms and a guild or having one file and different functions based on where it was called Signed-off-by: deepCurse <leverplays@gmail.com>
This commit is contained in:
parent
1380bc2a22
commit
168e45d745
18 changed files with 304 additions and 280 deletions
|
@ -7,13 +7,12 @@ import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
|||
public class DirectCommandBlob {
|
||||
|
||||
private DirectCommandManager commandManager = null;
|
||||
private ArrayList<String> args = null;
|
||||
|
||||
private ArrayList<String> args = null;
|
||||
private MessageReceivedEvent event = null;
|
||||
|
||||
private long userID = 0;
|
||||
private long channelID = 0;
|
||||
|
||||
private MessageReceivedEvent event = null;
|
||||
|
||||
public DirectCommandBlob(MessageReceivedEvent event) {
|
||||
setUserID(event.getAuthor().getIdLong());
|
||||
setChannelID(event.getChannel().getIdLong());this.event = event;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue