=More SubCommand Routine Mods
This commit is contained in:
@@ -31,11 +31,11 @@ public class SubCommandFramework
|
||||
SubCommandFormattable res = null;
|
||||
try
|
||||
{
|
||||
res = commands.get(input.split(" ")[0].toLowerCase()).OnRun(guild, channel, user, input.substring(input.indexOf(" ")));
|
||||
res = commands.get(input.split(" ")[0].toLowerCase()).Invoke(guild, channel, user, input.substring(input.indexOf(" ")));
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
res = commands.get(input.split(" ")[0].toLowerCase()).OnRun(guild, channel, user, "");
|
||||
res = commands.get(input.split(" ")[0].toLowerCase()).Invoke(guild, channel, user, "");
|
||||
}
|
||||
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user