示例#1
0
            public Task <Result> Execute(CommandMetadata data, SocketGuildUser user)
            {
                var    allShips = ParentPlugin.GetAllShipperShips(user);
                string result   = $"{user.GetShownName ()} has shipped the following ships:```\n";

                foreach (Shipping.Ship ship in allShips)
                {
                    result += ParentPlugin.ShipToString(ship) + "\n";
                }
                result += "```";
                return(TaskResult(result, result));
            }
示例#2
0
            public Task <Result> Execute(CommandMetadata data, SocketGuildUser user)
            {
                var           allShips = ParentPlugin.GetAllShipperShips(user);
                StringBuilder result   = new StringBuilder($"{user.GetShownName ()} has shipped the following ships:```\n");

                foreach (Shipping.Ship ship in allShips)
                {
                    result.Append(ParentPlugin.ShipToString(ship) + "\n");
                }
                result.Append("```");
                return(TaskResult(result, result.ToString()));
            }