This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -372,3 +372,4 @@ FodyWeavers.xsd
|
|||||||
/DiscordBot/Data/
|
/DiscordBot/Data/
|
||||||
/DiscordBot/Updater/
|
/DiscordBot/Updater/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.idea/
|
||||||
@@ -146,12 +146,7 @@ internal class CommandHandler
|
|||||||
if(split.Length > 1)
|
if(split.Length > 1)
|
||||||
argsClean = string.Join(' ', split, 1, split.Length-1).Split(' ');
|
argsClean = string.Join(' ', split, 1, split.Length-1).Split(' ');
|
||||||
|
|
||||||
CmdArgs cmd = new() {
|
CmdArgs cmd = new(context, cleanMessage, split[0], argsClean);
|
||||||
context = context,
|
|
||||||
cleanContent = cleanMessage,
|
|
||||||
commandUsed = split[0],
|
|
||||||
arguments = argsClean
|
|
||||||
};
|
|
||||||
|
|
||||||
if (context.Channel is SocketDMChannel)
|
if (context.Channel is SocketDMChannel)
|
||||||
plugin.ExecuteDM(cmd);
|
plugin.ExecuteDM(cmd);
|
||||||
|
|||||||
@@ -15,5 +15,13 @@ namespace PluginManager.Others
|
|||||||
public string commandUsed { get;init; }
|
public string commandUsed { get;init; }
|
||||||
public string[] arguments { get;init; }
|
public string[] arguments { get;init; }
|
||||||
|
|
||||||
|
public CmdArgs(SocketCommandContext context, string cleanContent, string commandUsed, string[] arguments)
|
||||||
|
{
|
||||||
|
this.context = context;
|
||||||
|
this.cleanContent = cleanContent;
|
||||||
|
this.commandUsed = commandUsed;
|
||||||
|
this.arguments = arguments;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user