Beispiel #1
0
        public bool CheckAsync(IDiscordMessage _message)
        {
            CommandEvent e = commands.Find(x => { return(x.Name == _message.Content.Split(' ')[0].ToLower()); });

            if (e != null)
            {
                Task.Run(() =>
                {
                    e.CheckCommand(_message, _message.Content.Split(' ')[0], e.Aliases);
                });
                return(true);
            }
            return(false);
        }